private void App_EnteredBackground(object sender, EnteredBackgroundEventArgs e) { var deferral = e.GetDeferral(); BLogger.Logger.Info("App has entered background..."); CoreWindowLogic.SaveSettings(); CoreWindowLogic.UpdateSmtc(); deferral.Complete(); }
private async void App_EnteredBackground(object sender, EnteredBackgroundEventArgs e) { var deferral = e.GetDeferral(); CoreWindowLogic.SaveSettings(); CoreWindowLogic.UpdateSmtc(true); CoreWindowLogic.EnableDisableSmtc(); await Task.Delay(200); CoreWindowLogic.isBackground = true; deferral.Complete(); }
private async void App_EnteredBackground(object sender, EnteredBackgroundEventArgs e) { var deferral = e.GetDeferral(); CoreWindowLogic.SaveSettings(); CoreWindowLogic.UpdateSmtc(true); if (!firsttime) { CoreWindowLogic.EnableDisableSmtc(); } else { firsttime = false; } await Task.Delay(200); CoreWindowLogic.isBackground = true; BLogger.Logger.Info("App has entered background..."); deferral.Complete(); }