Launcher.NavigateBackAsync Method

Navigates back to the previously active app.

Syntax

public:
static IAsyncOperation<bool>^ NavigateBackAsync()  

Return value

Type: IAsyncOperation<Boolean

Interface that can be used for tracking the progress of the asynchronous call. The result is an boolean value indicating whether the navigation succeeded or failed.

Remarks

Apps should call NavigateBackAsync when the user indicates that they wish to navigate back, but the app’s own navigation back stack is empty. There are generally two cases where an app has no internal destination to navigate “back” to:

  1. The home screen or main menu of the app.
  2. The landing page of a deep link into the app.

The following actions typically indicate a user’s intent to go back:

In response to those actions, when the app’s own navigation back stack is empty, the app should call NavigateBackAsync.

The system determines the proper app to navigate back to and performs the navigation. Usually this navigation will be back to Home, or to the app used immediately prior to the current app.

Requirements

Namespace: Windows.Xbox.System

Metadata: windows.winmd

See also

Reference

Launcher Class

Windows.Xbox.System Namespace