예제 #1
0
        public IJavascriptObject BuildListener()
        {
            var listener = _WebView.Factory.CreateObject();

            if (_Observer == null)
            {
                return(listener);
            }

            listener.Bind("TrackChanges", _WebView, (e) => _Observer.OnJavaScriptObjectChanges(e[0], e[1].GetStringValue(), e[2]));
            listener.Bind("TrackCollectionChanges", _WebView, JavascriptColectionChanged);

            return(listener);
        }
예제 #2
0
        public IJavascriptObject BuildListener()
        {
            var listener = _WebView.Factory.CreateObject();

            if (_Observer == null)
            {
                return(listener);
            }

            listener.BindArguments("TrackChanges", _WebView, (first, second, third) => _Observer.OnJavaScriptObjectChanges(first, second.GetStringValue(), third));
            listener.BindArguments("TrackCollectionChanges", _WebView, JavascriptColectionChanged);

            return(listener);
        }