WPCordovaClassLib.CordovaView.AppDeactivated C# (CSharp) Method

AppDeactivated() protected method

protected AppDeactivated ( object sender, DeactivatedEventArgs e ) : void
sender object
e DeactivatedEventArgs
return void
        void AppDeactivated(object sender, DeactivatedEventArgs e)
        {
            Debug.WriteLine("INFO: AppDeactivated");

            try
            {
                CordovaBrowser.InvokeScript("eval", new string[] { "cordova.fireDocumentEvent('pause');" });
            }
            catch (Exception)
            {
                Debug.WriteLine("ERROR: Pause event error");
            }
        }