/// <summary> /// Initializes a new instance of the <see cref="NativeWebView"/> class. /// </summary> /// <param name="renderer">The renderer.</param> public NativeWebView(CustomWebViewRenderer renderer, bool enableAdditionalTouchDetector) : base(renderer.Context) { enableDetector = enableAdditionalTouchDetector; if (enableDetector) { var listener = new MyGestureListener(renderer); this.detector = new GestureDetector(this.Context, listener); } }
/// <summary> /// Initializes a new instance of the <see cref="MyGestureListener"/> class. /// </summary> /// <param name="renderer">The renderer.</param> public MyGestureListener(CustomWebViewRenderer renderer) { this.webHybrid = new WeakReference <CustomWebViewRenderer>(renderer); }
/// <summary> /// Initializes a new instance of the <see cref="Xamarin"/> class. /// </summary> /// <param name="webHybrid">The web hybrid.</param> public Xamarin(CustomWebViewRenderer webHybrid) { this.webHybrid = new WeakReference <CustomWebViewRenderer>(webHybrid); }
/// <summary> /// Initializes a new instance of the <see cref="Client"/> class. /// </summary> /// <param name="webHybrid">The web hybrid.</param> public Client(CustomWebViewRenderer webHybrid) { this.WebHybrid = new WeakReference <CustomWebViewRenderer>(webHybrid); }