void AppActivated(object sender, Microsoft.Phone.Shell.ActivatedEventArgs e) { Debug.WriteLine("AppActivated"); try { YebobBrowser.InvokeScript("CordovaCommandResult", new string[] { "resume" }); } catch (Exception) { Debug.WriteLine("Resume event error"); } }
void AppDeactivated(object sender, DeactivatedEventArgs e) { Debug.WriteLine("AppDeactivated"); try { YebobBrowser.InvokeScript("CordovaCommandResult", new string[] { "pause" }); } catch (Exception) { Debug.WriteLine("Pause event error"); } }
void page_BackKeyPress(object sender, CancelEventArgs e) { if (OverrideBackButton) { try { YebobBrowser.InvokeScript("CordovaCommandResult", new string[] { "backbutton" }); e.Cancel = true; } catch (Exception) { } } }