Dela via


ILeavingBackgroundEventArgs Interface

Definition

Gets the deferral object when the app is leaving the background state.

public interface class ILeavingBackgroundEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.Guid(969338010, 44654, 18169, 160, 122, 207, 194, 63, 136, 115, 62)]
struct ILeavingBackgroundEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.Guid(969338010, 44654, 18169, 160, 122, 207, 194, 63, 136, 115, 62)]
public interface ILeavingBackgroundEventArgs
Public Interface ILeavingBackgroundEventArgs
Derived
Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

Tip

This event is raised before any UI is shown and is a good place to ensure that any assets that you load programmatically are ready so that the UI will be presented correctly.

Methods

GetDeferral()

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

Applies to

See also