Automobile.Mobile.Android.Automation.AndroidWebClient.OnNewPicture C# (CSharp) Method

OnNewPicture() public method

A new picture is rendered to the screen
public OnNewPicture ( WebView view, Android.Graphics.Picture picture ) : void
view WebView
picture Android.Graphics.Picture
return void
        public void OnNewPicture(WebView view, Picture picture)
        {
            if (!_set)
            {
                // TODO: only add if not there, also include jquery mobile
                view.LoadUrl(@"javascript:!function(){var jsFile = window.document.createElement('script');
                        jsFile.setAttribute('type', 'text/javascript');
                        jsFile.setAttribute('src', '//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js');
                        window.document.getElementsByTagName('head')[0].appendChild(jsFile);}()");

                LoadTrigger.Set();
                _set = false;
            }
        }