/** 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);
 }
Exemplo n.º 3
0
        public MauiWKWebView(CGRect frame, WebViewHandler handler)
            : base(frame, CreateConfiguration())
        {
            _handler = handler;

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

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

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