uap:LaunchAction (in uap:AutoPlayContent) (Windows 10)
Describes an AutoPlay content action.
Element hierarchy
<uap:LaunchAction>
Syntax
<uap:LaunchAction
Verb = 'A string with a value between 1 and 64 characters in length that consists of alphanumeric characters, periods ("."), dashes ("-"), and spaces only.'
ActionDisplayName = 'A string with a value between 1 and 256 characters in length. This string is localizable.'
ContentEvent = 'A string with a value between 1 and 255 characters in length. Backward slashes ("\") are not allowed.' />
Attributes and elements
Attributes
Attribute | Description | Data type | Required | Default value |
---|---|---|---|---|
Verb | A unique identifier that is passed to the app when it is launched. The app can use this string to determine which AutoPlay handler triggered its launch. It is unique per application in the package and is case sensitive. | A string with a value between 1 and 64 characters in length that consists of alphanumeric characters, periods (. ), dashes (- ), and spaces only. |
Yes | |
ActionDisplayName | The name displayed to the user in the AutoPlay flyout for the handler. | A string with a value between 1 and 256 characters in length. This string is localizable. | Yes | |
ContentEvent | The name of a content-related event that the extensibility point handles. For more info, see Remarks. | A string with a value between 1 and 255 characters in length. Backward slashes (\ ) are not allowed. |
Yes |
Child elements
None.
Parent elements
Parent element | Description |
---|---|
uap:AutoPlayContent | Declares an app extensibility point of type windows.autoPlayContent. The app provides the specified AutoPlay content actions. |
Related elements
The following elements have the same name as this one, but different content or attributes:
Remarks
ContentEvent can be a custom event defined by the volume or one of the following well-known events:
- HandleCDBurningOnArrival
- HandleDVDBurningOnArrival
- MixedContentOnArrival
- PlayBluRayOnArrival
- PlayCDAudioOnArrival
- PlayDVDAudioOnArrival
- PlayDVDMovieOnArrival
- PlayEnhancedCDOnArrival
- PlayEnhancedDVDOnArrival
- PlayMusicFilesOnArrival
- PlaySuperVideoCDMovieOnArrival
- PlayVideoCDMovieOnArrival
- PlayVideoFilesOnArrival
- ShowPicturesOnArrival
- StorageOnArrival
- UnknownContentOnArrival
Examples
<uap:Extension
Category="windows.autoPlayContent">
<uap:AutoPlayContent>
<uap:LaunchAction
Verb="open"
ActionDisplayName="Display"
ContentEvent="ShowPicturesOnArrival"/>
</uap:AutoPlayContent>
</uap:Extension>
See also
Requirements
Item | Value |
---|---|
Namespace | http://schemas.microsoft.com/appx/manifest/uap/windows10 |
Minimum OS Version | Windows 10 version 1511 (Build 10586) |