Ejemplo n.º 1
0
        private async void Application_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
        {
            var deferral = e.GetDeferral();

            _kinectSensor?.CloseAsync();
            deferral.Complete();
        }
Ejemplo n.º 2
0
        private void App_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
        {
            Log("App.EnteredBackground");

            // No need to update UI while in background
            activityUpdateTimer.Stop();
        }
        private async void Current_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
        {
            var defferal = e.GetDeferral();

            await StopUpdateTimer();

            defferal.Complete();
        }
Ejemplo n.º 4
0
        private async void Application_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
        {
            CompositionTarget.Rendering -= CompositionTarget_Rendering;
            var deferral = e.GetDeferral();
            await _kinectSensor?.CloseAsync();

            deferral.Complete();
        }
        public void OnEnteredBackground(Windows.ApplicationModel.EnteredBackgroundEventArgs args)
        {
            _isInBackground = true;

            if (Window.Current.Content is WebViewPage webViewPage)
            {
                webViewPage.Unload();
            }
        }
Ejemplo n.º 6
0
 private void CoreApplication_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     NetworkHelper.Instance.NetworkChanged -= Instance_NetworkChanged;
     if (WiFiScanTimer != null)
     {
         WiFiScanTimer.Tick -= WiFiScanTimer_Tick;
         WiFiScanTimer.Stop();
     }
     Progressing.Visibility = Visibility.Collapsed;
 }
Ejemplo n.º 7
0
        private async void App_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
        {
            var deferral = e.GetDeferral();

            if (EditorSettingsService.IsSessionSnapshotEnabled)
            {
                await SessionManager.SaveSessionAsync();
            }

            deferral.Complete();
        }
 private void OnNowPlayingEnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     PlaybackControl.Instance.Player.CurrentStateChanged -= NowPlayingOnPlaybackStateChanged;
     PlaylistManager.Instance.FavoriteChanged            -= NowPlayingOnFavoriteChanged;
     PlaybackControl.Instance.NowPlayingChanged          -= NowPlayingOnNowPlayingItemChanged;
     _nowPlayingTimer.Tick -= NowPlayingTimerOnTick;
     _nowPlayingTimer.Stop();
     if (StateGroup.CurrentState == LyricsState)
     {
         _displayRequest.RequestRelease();
     }
 }
 private void HybridWebApplication_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     _webUIApplication.OnEnteredBackground(e);
 }
Ejemplo n.º 10
0
 private void Current_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     Settings.Save();
 }
Ejemplo n.º 11
0
 private void OnEnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     _vm.UnregsterEvents();
 }
Ejemplo n.º 12
0
 private void EnterBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     UwpDispatcher.Activated = false;
 }
Ejemplo n.º 13
0
 private void App_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     _isInBackgroundMode = true;
     Debug.WriteLine($"App state : {_isInBackgroundMode}");
 }
Ejemplo n.º 14
0
 private void App_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     _isInBackgroundMode = true;
     UnloadViewContentIfNeeded();
 }
Ejemplo n.º 15
0
 private void Current_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     _UpdateTimer?.Dispose();
     _UpdateTimer = null;
 }
 private void EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     XElement.CancelTimer();
 }
Ejemplo n.º 17
0
        private void Current_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
        {
//           this.AssociatedObject.SetMediaPlayer(null);
//            GC.Collect();
        }
Ejemplo n.º 18
0
 private static void EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     ApplicationDeactivated();
 }
 private void App_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     EventDispatcher.Dispatch(() => EnteredBackground?.Invoke(this, e));
 }
 //**-------------**********************************************--------------**//
 // We need to reinitialize the capture sink every time someone minimizes and maxamizes the window
 // This is because UWP -- Internals --- Limitations --- etc --- #HacksAndDuctTape
 private void Current_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     InitializeCaptureSinkCommand?.Execute(sender);
 }
Ejemplo n.º 21
0
 private void Current_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     StopUpdateTimer();
 }
Ejemplo n.º 22
0
 private void Current_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
 {
     DeactivatePolling();
 }