VoiceCommandContentTile
VoiceCommandContentTile
VoiceCommandContentTile
VoiceCommandContentTile
Class
Definition
An asset, containing image, text, and link data, provided by the background app service for display on the Cortana canvas.
public : sealed class VoiceCommandContentTile : IVoiceCommandContentTilepublic sealed class VoiceCommandContentTile : IVoiceCommandContentTilePublic NotInheritable Class VoiceCommandContentTile Implements IVoiceCommandContentTile// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
MaxSupportedVoiceCommandContentTiles specifies the maximum number of tiles the background app service can display on the Cortana canvas.
The maximum number of tiles that can be displayed depends on the feedback screen being shown. One item when the VoiceCommandResponse is created for ReportProgressAsync or RequestConfirmationAsync, and more than one item when the VoiceCommandResponse is created for RequestDisambiguationAsync.
Constructors
VoiceCommandContentTile() VoiceCommandContentTile() VoiceCommandContentTile() VoiceCommandContentTile()
Creates an instance of the VoiceCommandContentTile class.
public : VoiceCommandContentTile()public VoiceCommandContentTile()Public Sub New()// You can use this method in JavaScript.
- See Also
Properties
AppContext AppContext AppContext AppContext
Gets or sets supplementary information the background app service can associate with the content tile. This information is not used by Cortana.
public : PlatForm::Object AppContext { get; set; }public object AppContext { get; set; }Public ReadWrite Property AppContext As object// You can use this property in JavaScript.
- Value
- PlatForm::Object object object object
Supplementary information associated with the content tile.
- See Also
AppLaunchArgument AppLaunchArgument AppLaunchArgument AppLaunchArgument
Gets or sets a string as a launch parameter that can be associated with the response by the background app service.
AppLaunchArgument is used to specify the state or context of the foreground app when launched through a deep link in Cortana.
public : PlatForm::String AppLaunchArgument { get; set; }public string AppLaunchArgument { get; set; }Public ReadWrite Property AppLaunchArgument As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The key/value pair.
Remarks
To enable deep linking to an app, declare the windows.personalAssistantLaunch extension in the Package.appxmanifest file of the app project.
An app is launched to the foreground through Uniform Resource Identifier (URI) activation using a Protocol contract. The app must override the OnActivated event and check for an ActivationKind of Protocol. See Handle URI activation for more info.
- See Also
ContentTileType ContentTileType ContentTileType ContentTileType
Gets or sets the layout template used for the content tiles on the Cortana canvas.
Note
All content tiles on a Cortana feedback screen must use the same template.
public : VoiceCommandContentTileType ContentTileType { get; set; }public VoiceCommandContentTileType ContentTileType { get; set; }Public ReadWrite Property ContentTileType As VoiceCommandContentTileType// You can use this property in JavaScript.
- Value
- VoiceCommandContentTileType VoiceCommandContentTileType VoiceCommandContentTileType VoiceCommandContentTileType
The content tile template.
- See Also
Image Image Image Image
Gets or sets the image used on the content tile.
Specify the tile layout template with the ContentTileType property.
public : IStorageFile Image { get; set; }public IStorageFile Image { get; set; }Public ReadWrite Property Image As IStorageFile// You can use this property in JavaScript.
The image associated with the content tile.
- See Also
TextLine1 TextLine1 TextLine1 TextLine1
Gets or sets the first line of text used on the content tile.
Specify the tile layout template with the ContentTileType property.
public : PlatForm::String TextLine1 { get; set; }public string TextLine1 { get; set; }Public ReadWrite Property TextLine1 As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The first line of text associated with the content tile.
- See Also
TextLine2 TextLine2 TextLine2 TextLine2
Gets or sets the second line of text used on the content tile.
Specify the tile layout template with the ContentTileType property.
public : PlatForm::String TextLine2 { get; set; }public string TextLine2 { get; set; }Public ReadWrite Property TextLine2 As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The second line of text associated with the content tile.
- See Also
TextLine3 TextLine3 TextLine3 TextLine3
Gets or sets the third line of text used on the content tile.
Specify the tile layout template with the ContentTileType property.
public : PlatForm::String TextLine3 { get; set; }public string TextLine3 { get; set; }Public ReadWrite Property TextLine3 As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The third line of text associated with the content tile.
- See Also
Title Title Title Title
Gets or sets the title used on the content tile.
Specify the tile layout template with the ContentTileType property.
public : PlatForm::String Title { get; set; }public string Title { get; set; }Public ReadWrite Property Title As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The title associated with the content tile.
- See Also