Jaa


WebUINavigatedOperation.GetDeferral Method

Definition

Requests that the completion of app navigation be delayed.

public:
 virtual WebUINavigatedDeferral ^ GetDeferral() = GetDeferral;
WebUINavigatedDeferral GetDeferral();
public WebUINavigatedDeferral GetDeferral();
function getDeferral()
Public Function GetDeferral () As WebUINavigatedDeferral

Returns

The navigated deferral object.

Remarks

When an app navigates or reloads its top level document, the system freezes the app’s visuals until the app indicates that it is ready to display its UI. The system transitions back to the app’s live UI when the app returns from its navigated event handler. However, some apps need to start asynchronous operations to retrieve state information and set up their UI (like using fragment loading to display app pages). Apps that must complete navigation asynchronously can get a deferral object from the navigated event arguments. This object enables the app to complete navigation outside its handler. When the app acquires the deferral object, its navigation is not completed when the navigation handler returns.

An app can complete navigation after its required asynchronous operations complete and it is ready to display its UI. App navigation is delayed until the app calls the WebUINavigatedDeferral.complete method.

Note that before an app completes navigation the app will appear hung to the user. It is important for the app to complete navigation as quickly as possible.

Applies to

See also