Пример #1
0
        private async void Application_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
        {
            var deferral = e.GetDeferral();

            _kinectSensor?.CloseAsync();
            deferral.Complete();
        }
        private async void Current_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
        {
            var defferal = e.GetDeferral();

            await StopUpdateTimer();

            defferal.Complete();
        }
Пример #3
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();
        }
Пример #4
0
        private async void App_EnteredBackground(object sender, Windows.ApplicationModel.EnteredBackgroundEventArgs e)
        {
            var deferral = e.GetDeferral();

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

            deferral.Complete();
        }