-api-id | -api-type |
---|---|
P:Windows.UI.WebUI.WebUICachedFileUpdaterActivatedEventArgs.SplashScreen |
winrt property |
Gets the splash screen object that provides information about the transition from the splash screen to the activated app.
The object that provides splash screen information.
The Splash screen sample demonstrates how to retrieve a splashScreen object in its activated event handler, if the app was launched:
// Identify and respond to all app activated events.
WinJS.Application.onactivated = function (eventObject) {
// App was launched
if (eventObject.detail.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) {
// Retrieve splash screen object
splash = eventObject.detail.splashScreen;
// Add code get image coordinates or listen for the dismissed event
WinJS.UI.processAll();
}
// Add code to respond to other activated event types
};
In the sample, eventObject
is an object provides information about the activated event. In the case of a ActivationKind.launch activated event, the eventObject
is a WebUILaunchActivatedEventArgs object.