IEnteredBackgroundEventArgs IEnteredBackgroundEventArgs IEnteredBackgroundEventArgs IEnteredBackgroundEventArgs Interface

Definition

Gets the deferral object when an app has entered the background state.

public : interface IEnteredBackgroundEventArgspublic interface IEnteredBackgroundEventArgsPublic Interface IEnteredBackgroundEventArgs// You can use this interface in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

Tip

By the time an app enters the background state, none of its UI is visible.

Methods

GetDeferral() GetDeferral() GetDeferral() GetDeferral()

Gets the deferral object which delays the transition from running in the background state to the suspended state until the app calls Deferral.Complete or the deadline for navigation has passed.

public : Deferral GetDeferral()public Deferral GetDeferral()Public Function GetDeferral() As Deferral// You can use this method in JavaScript.
Returns

The deferral object you will use to indicate when your processing is complete.

Remarks

Deferrals are important if you call asynchronous methods from your event handler. Without the deferral, the app transitions to the next state when the event handler returns— which could happen before your asynchronous method has finished.