/** Instruct the browser component to go to beginning. */
 public void goHome(string unused)
 {
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         var webview = WebViewHandler.getInstance().webView;
         webview.CordovaBrowser.Navigate(webview.StartPageUri);
     });
 }
 public static WebViewHandler getInstance()
 {
     if (instance == null)
     {
         instance = new WebViewHandler();
     }
     return(instance);
 }
Esempio n. 3
0
        public MauiWKWebView(CGRect frame, WebViewHandler handler)
            : base(frame, CreateConfiguration())
        {
            _handler = handler;

            BackgroundColor   = UIColor.Clear;
            AutosizesSubviews = true;
        }
Esempio n. 4
0
 AWebView GetNativeWebView(WebViewHandler webViewHandler) =>
 webViewHandler.NativeView;
Esempio n. 5
0
 string GetNativeSource(WebViewHandler webViewHandler) =>
 GetNativeWebView(webViewHandler).Url;
Esempio n. 6
0
 public static void MapEnableZoomControls(WebViewHandler handler, WebView webView)
 {
     Platform.WebViewExtensions.UpdateEnableZoomControls(handler.PlatformView, webView);
 }
Esempio n. 7
0
 public static void MapMixedContentMode(WebViewHandler handler, WebView webView)
 {
     Platform.WebViewExtensions.UpdateMixedContentMode(handler.PlatformView, webView);
 }
 AWebView GetNativeWebView(WebViewHandler webViewHandler) =>
 webViewHandler.PlatformView;
Esempio n. 9
0
        public MauiWebViewClient(WebViewHandler handler)
        {
            _handler = handler ?? throw new ArgumentNullException("handler");

            _navigationResult = WebNavigationResult.Success;
        }
Esempio n. 10
0
 public MauiWebViewClient(WebViewHandler handler)
 {
     _handler = handler ?? throw new ArgumentNullException("handler");
 }
 public MauiWebViewNavigationDelegate(WebViewHandler handler)
 {
     _handler = handler ?? throw new ArgumentNullException("handler");
 }
Esempio n. 12
0
        public MauiWebChromeClient(WebViewHandler handler)
        {
            _handler = handler ?? throw new ArgumentNullException("handler");

            SetContext(_handler.Context);
        }
Esempio n. 13
0
 public MauiWebView(WebViewHandler handler, Context context) : base(context)
 {
     _handler = handler ?? throw new ArgumentNullException("handler");
 }
Esempio n. 14
0
 string GetNativeSource(WebViewHandler webViewHandler) =>
 GetNativeWebView(webViewHandler).Url.AbsoluteString;