AudioGraphBackgroundPlayback.App.App_LeavingBackground C# (CSharp) Method

App_LeavingBackground() private method

The application is leaving the background.
private App_LeavingBackground ( object sender, LeavingBackgroundEventArgs e ) : void
sender object
e LeavingBackgroundEventArgs
return void
        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);
            }
        }