private async Task createBrowserWindow(object optionsObject) { Dictionary <string, object> options = optionsObject as Dictionary <string, object>; // PARSE & STORE OPTIONS if (options.ContainsKey(NKEBrowserOptions.nkBrowserType)) { browserType = (NKEBrowserType)Enum.Parse(typeof(NKEBrowserType), (options[NKEBrowserOptions.nkBrowserType]) as string); } else { browserType = NKEBrowserDefaults.nkBrowserType; } switch (browserType) { case NKEBrowserType.WKWebView: throw new PlatformNotSupportedException(); case NKEBrowserType.UIWebView: throw new PlatformNotSupportedException(); case NKEBrowserType.MSWebView: NKLogging.log("+creating Native (Edge/Trident) Renderer"); await _webContents.createWebView(options); break; default: break; } }
private async Task createBrowserWindow(object optionsObject) { Dictionary<string, object> options = optionsObject as Dictionary<string, object>; // PARSE & STORE OPTIONS if (options.ContainsKey(NKEBrowserOptions.nkBrowserType)) browserType = (NKEBrowserType)Enum.Parse(typeof(NKEBrowserType), (options[NKEBrowserOptions.nkBrowserType]) as string); else browserType = NKEBrowserDefaults.nkBrowserType; switch (browserType) { case NKEBrowserType.WKWebView: throw new PlatformNotSupportedException(); case NKEBrowserType.UIWebView: throw new PlatformNotSupportedException(); case NKEBrowserType.MSWebView: NKLogging.log("+creating Native (Edge/Trident) Renderer"); await _webContents.createWebView(options); break; default: break; } }