Beispiel #1
0
        void InitWebView()
        {
            WKWebViewConfiguration config = new WKWebViewConfiguration();

            config.Preferences.JavaScriptCanOpenWindowsAutomatically = true;
            this.webView = new WebViewImp(this.View.Frame, config);
            this.webView.TranslatesAutoresizingMaskIntoConstraints = false;
            this.webView.AutoresizingMask = UIViewAutoresizing.None;
            this.Add(this.webView);
        }
Beispiel #2
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     this.webView = null;
 }
Beispiel #3
0
 public DefaultNavDelegate(WebViewImp webView)
 {
     this.webView = webView;
 }