コード例 #1
0
        private void App_LeavingBackground(object sender, LeavingBackgroundEventArgs e)
        {
            isInBackgroundMode = false;

            // Reastore view content if it was previously unloaded.
            if (Window.Current.Content == null)
            {
                CreateRootFrame(ApplicationExecutionState.Running, string.Empty);
            }
        }
コード例 #2
0
        /// <summary>
        /// The application is leaving the background.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void App_LeavingBackground(object sender, LeavingBackgroundEventArgs e)
        {
            // Mark the transition out of background mode.
            Debug.WriteLine("Leaving background");
            isInBackgroundMode = false;

            // Reastore view content if it was previously unloaded.
            if (Window.Current.Content == null)
            {
                Debug.WriteLine("Loading view");
                CreateRootFrame(ApplicationExecutionState.Running, string.Empty);
            }
        }
コード例 #3
0
ファイル: App.xaml.cs プロジェクト: mtaulty/LifeCycleApp
 void OnLeftBackground(object sender, LeavingBackgroundEventArgs e)
 {
     AppState.Instance.LeftBackground++;
 }
コード例 #4
0
ファイル: App.xaml.cs プロジェクト: DaveDaCoda/Files
 private void OnLeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     AppSettings?.DrivesManager?.ResumeDeviceWatcher();
 }
コード例 #5
0
ファイル: App.xaml.cs プロジェクト: kira0x1/files-uwp
 private void OnLeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     // Need to reinitialize AppService when app is resuming
     InitializeAppServiceConnection();
 }
コード例 #6
0
ファイル: CoreApplication.cs プロジェクト: unoplatform/uno
 /// <summary>
 /// Raises the <see cref="LeavingBackground"/> event.
 /// </summary>
 /// <param name="args">Leaving background event args.</param>
 internal static void RaiseLeavingBackground(LeavingBackgroundEventArgs args) => LeavingBackground?.Invoke(null, args);
コード例 #7
0
 /// <summary>
 /// Invoked when application leaving the background.
 /// </summary>
 /// <param name="sender">The source of the leaving background request.</param>
 /// <param name="e">Details about the leaving background request.</param>
 private void OnLeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     _host.OnLeavingBackground();
 }
コード例 #8
0
 private void AppBack_Leave(object sender, LeavingBackgroundEventArgs e)
 {
     ShowToast("前台");
     isBackGround = false;
 }
 public void App_LeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     _isInBackgroundMode = false;
 }
コード例 #10
0
 public async void apagarCamara(object sender, LeavingBackgroundEventArgs e)
 {
     ShutdownWebCam();
 }
コード例 #11
0
 private void App_LeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     OutputDebugString("edetocCCTSample_Tracing : LeavingBackground");
 }
コード例 #12
0
ファイル: App.xaml.cs プロジェクト: alexpisquared/MediaPlay
 void onLeavingBackground(object s, LeavingBackgroundEventArgs e)
 {
     create_UI();
 }
コード例 #13
0
 private void OnLeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     _reactApplication.Host.OnLeavingBackground();
 }
コード例 #14
0
ファイル: App.xaml.cs プロジェクト: UnigramDev/Unigram
 private void OnLeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     IsBackground = false;
 }
コード例 #15
0
 private void Current_LeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     ToastNotificationManager.History.Remove("EnterBackgroundTips");
 }
コード例 #16
0
 private void AppLeavingBackground(object sender, LeavingBackgroundEventArgs e) =>
 AppLeavingBackgroundAsync().FireAndForgetSafeAsync();
コード例 #17
0
 private void CoreApplication_LeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     Debug.WriteLine("VoiceCommand: LeavingBackground");
     this.InitializeRecognizer();
 }
コード例 #18
0
 private void App_LeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     LogService.Write();
 }
コード例 #19
0
ファイル: App.xaml.cs プロジェクト: visionarylab/PowerCenter
 private void App_LeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     IsForeground = true;
 }
コード例 #20
0
ファイル: App.xaml.cs プロジェクト: xperiandri/vlc-winrt
 private void OnLeavingBackground(object sender, LeavingBackgroundEventArgs leavingBackgroundEventArgs)
 {
     ApplicationSettingsHelper.SaveSettingsValue("AppBackgrounded", false);
 }
コード例 #21
0
ファイル: App.xaml.cs プロジェクト: TaoziDB/Hohoema
 private void App_LeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     Debug.WriteLine("Leave BG");
 }
コード例 #22
0
 private void OnLeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     InBackground = false;
     Debug.WriteLine("Foreground");
 }
コード例 #23
0
 private void OnLeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     // Need to reinitialize AppService when app is resuming
     InitializeAppServiceConnection();
     AppSettings?.DrivesManager?.ResumeDeviceWatcher();
 }
コード例 #24
0
 private void Current_LeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     Debug.WriteLine("leaving bg");
     cameraManager.StartPreviewAsync(null);
 }
コード例 #25
0
 private void App_LeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     //throw new NotImplementedException();
 }
コード例 #26
0
 private static void OnLeavingBackground(object sender, LeavingBackgroundEventArgs leavingBackgroundEventArgs)
 {
     ToolkitServiceProvider.Application?.SetApplicationState(ApplicationState.Active, null);
 }
コード例 #27
0
ファイル: App.xaml.cs プロジェクト: StevenGLee/RX-Explorer
 private void App_LeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     IsInBackgroundMode = false;
 }
コード例 #28
0
        private void OnLeavingBackground(object sender, LeavingBackgroundEventArgs e)
        {
            Deferral deferral = e.GetDeferral();

            deferral.Complete();
        }
コード例 #29
0
ファイル: App.xaml.cs プロジェクト: wellsjiang/BiliBili-UWP-1
 private void App_LeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     AppViewModel.IsInBackground = false;
     AppViewModel.CheckPlayerOnBackgroundChanged();
 }
コード例 #30
0
ファイル: CoreViewModel.cs プロジェクト: UnsignedInt8/Ayane
 private void App_LeavingBackground(object sender, LeavingBackgroundEventArgs args)
 {
     IsInBackgroundMode = false;
     (Application.Current as App)?.RecreateFrame();
 }