public void InitOnJsContext(bool debugMode) { var builder = new BinderBuilder(WebView, _JavascriptChangesObserver); _Listener = builder.BuildListener(); _VmManager = _JavascriptFrameworkManager.CreateManager(WebView, _Listener, _Logger, debugMode); ViewModelUpdater = _VmManager.ViewModelUpdater; JavascriptSessionInjector = _VmManager.Injector; }
public HTMLViewContext(IWebView webView, IDispatcher uiDispatcher, IJavascriptFrameworkManager javascriptFrameworkManager, IJavascriptChangesObserver javascriptChangesObserver, IWebSessionLogger logger) { WebView = webView; _logger = logger; UIDispatcher = uiDispatcher; var builder = new BinderBuilder(webView, javascriptChangesObserver); _Listener = builder.BuildListener(); _VmManager = javascriptFrameworkManager.CreateManager(WebView, _Listener, _logger); ViewModelUpdater = _VmManager.ViewModelUpdater; JavascriptSessionInjector = _VmManager.Injector; }