void wb_NavigationCompleted(WebView sender, WebViewNavigationCompletedEventArgs e) {
            //com.codename1.ui.events.BrowserNavigationCallback bn = (com.codename1.ui.events.BrowserNavigationCallback)currentBrowser.getBrowserNavigationCallback();
            com.codename1.ui.events.ActionEvent ev = new com.codename1.ui.events.ActionEvent();
            if (e.IsSuccess == true) {

            }
            else {
                ev.@this(toJava(e.Uri.OriginalString));
                currentBrowser.fireWebEvent(toJava("onError"), ev);
            }
        }
 void wb_Navigating(WebView sender, WebViewNavigationStartingEventArgs e) {
     com.codename1.ui.events.BrowserNavigationCallback bn = (com.codename1.ui.events.BrowserNavigationCallback)currentBrowser.getBrowserNavigationCallback();
     if (!bn.shouldNavigate(toJava(e.Uri.ToString()))) {
         e.Cancel = true;
     }
     com.codename1.ui.events.ActionEvent ev = new com.codename1.ui.events.ActionEvent();
     ev.@this(toJava(e.Uri.OriginalString));
     currentBrowser.fireWebEvent(toJava("onStart"), ev);
 }
        public void ContinueFileOpenPicker(FileOpenPickerContinuationEventArgs args) {
            if (args != null) {
                if (args.Files.Count == 0) return;

                view.Activated -= view_Activated;
                fileName = args.Files[0].Name;
                com.codename1.ui.events.ActionEvent ac = new com.codename1.ui.events.ActionEvent();
                ac.@this(toJava("file:/" + fileName));
                fireCapture(ac);

            }
        }
 void webview_ContentLoading(WebView sender, WebViewContentLoadingEventArgs e) {
     //com.codename1.ui.events.BrowserNavigationCallback bn = (com.codename1.ui.events.BrowserNavigationCallback)currentBrowser.getBrowserNavigationCallback();
     com.codename1.ui.events.ActionEvent ev = new com.codename1.ui.events.ActionEvent();
     ev.@this(toJava(e.Uri.OriginalString));
     currentBrowser.fireWebEvent(toJava("onLoad"), ev);
 }