Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
        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;
        }