commands (Toast XML Schema)
Specifies that the toast notification is being used to indicate an incoming call or an alarm, with appropriate commands associated with each scenario.
Note
The commands element has been deprecated. This functionality is implemented using the scenario attribute of the toast element and the actions element.
Element hierarchy
- <toast>
- <commands>
Syntax
<commands scenario? = "alarm" | "incomingCall" >
<!-- Child elements -->
command*
</commands>
Key
?
optional (zero or one)
*
optional (zero or more)
Attributes and Elements
Attributes
Attribute | Description | Data type | Required | Default value |
---|---|---|---|---|
scenario | The intended use of the notification. |
This attribute can have one of the following values:
|
No | None |
Child Elements
Child Element | Description |
---|---|
command | Specifies a scenario-associated button shown in a toast. The scenario is specified in the parent commands element. |
Parent Elements
Parent Element | Description |
---|---|
toast | Base toast element, which contains at least a single visual element. |
See also