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); }
protected override void Dispose(bool disposing) { base.Dispose(disposing); this.webView = null; }
public DefaultNavDelegate(WebViewImp webView) { this.webView = webView; }