WebUIProtocolActivatedEventArgs class

Applies to Windows and Windows Phone

Provides data when an app is activated because it is the app associated with a URI scheme name.

Syntax


/* For information about creating or accessing this object, see Remarks. */

Attributes

[MarshalingBehavior(Standard)]
[Version(0x06020000)]

Members

The WebUIProtocolActivatedEventArgs class has these types of members:

Methods

The WebUIProtocolActivatedEventArgs class inherits methods from the Object class (C#/VB/C++).

Properties

The WebUIProtocolActivatedEventArgs class has these properties.

PropertyAccess typeDescription

ActivatedOperation

Read-onlyGets the app activation operation.

CurrentlyShownApplicationViewId

Read-onlyGets the identifier for the currently shown app view.

Kind

Read-onlyGets the activation type.

PreviousExecutionState

Read-onlyGets the execution state of the app before it was activated.

SplashScreen

Read-onlyGets the splash screen object that provides information about the transition from the splash screen to the activated app.

Uri

Read-onlyGets the Uniform Resource Identifier (URI) for which the app was activated.

 

Remarks

This object is accessed when you implement an event handler for the WinJS.Application.Onactivated or the Windows.UI.WebUI.WebUIApplication.activated events when ActivationKind is protocol.

Note  : This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX).

Examples

The activated event handler receives all activation events. The kind property indicates the type of activation event. This example is set up to handle URI activation events.


function onActivatedHandler(eventArgs) {
   if (eventArgs.detail.kind == Windows.ApplicationModel.Activation.ActivationKind.protocol) 
   {
       // TODO: Handle URI activation.

       // The received URI is eventArgs.detail.uri.rawUri
   }
}

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.WebUI

Metadata

Windows.winmd

See also

Samples
Association launching sample
Tasks
How to handle URI activation
Guidelines
Guidelines and checklist for file types and URIs
Reference
URI
WebUIApplication.ActivatedEventHandler
WinJS.Application.onactivated

 

 

Show:
© 2014 Microsoft