예제 #1
0
            /// <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);
                }
            }
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <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);
 }
예제 #4
0
 /// <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);
 }