IActivatedEventArgs IActivatedEventArgs IActivatedEventArgs IActivatedEventArgs Interface

Definition

Provides common properties for all activation types.

public : interface IActivatedEventArgs
public interface IActivatedEventArgs
Public Interface IActivatedEventArgs
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Do not implement this interface.

Properties

Kind Kind Kind Kind

Gets the reason that this app is being activated.

public : ActivationKind Kind { get; }
public ActivationKind Kind { get; }
Public ReadOnly Property Kind As ActivationKind
var activationKind = iActivatedEventArgs.kind;
Value
ActivationKind ActivationKind ActivationKind ActivationKind

One of the enumeration values.

PreviousExecutionState PreviousExecutionState PreviousExecutionState PreviousExecutionState

Gets the execution state of the app before this activation.

public : ApplicationExecutionState PreviousExecutionState { get; }
public ApplicationExecutionState PreviousExecutionState { get; }
Public ReadOnly Property PreviousExecutionState As ApplicationExecutionState
var applicationExecutionState = iActivatedEventArgs.previousExecutionState;

Remarks

The app uses this information to determine whether it should restore saved state.

SplashScreen SplashScreen SplashScreen SplashScreen

Gets the splash screen object that provides information about the transition from the splash screen to the activated app.

public : SplashScreen SplashScreen { get; }
public SplashScreen SplashScreen { get; }
Public ReadOnly Property SplashScreen As SplashScreen
var splashScreen = iActivatedEventArgs.splashScreen;
Value
SplashScreen SplashScreen SplashScreen SplashScreen

The splash screen object.

Remarks

This property is only meaningful when the app is activated under a contract that expects a window to be presented. If the contract doesn't require a window or if the app is being activated for a background task, this call will fail.