Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Struct CommandSource

sealed struct CommandSource
The CommandSource type represents the initiator of the command. It is a predefined set of constants but new constants could be added in the future.

Fields

Constants

SYSTEM_DISPLAY_OFF

CommandSource = {"SYSTEM_DISPLAY_OFF"}
Indicates the media control command was initiated by the system, e.g., the HDMI cable was disconnected resulting in a pause command.

USER

CommandSource = {"USER"}
Indicates the media control command was initiated by the user, e.g., the pause button was pressed on the remote control.

OTHER

CommandSource = {"OTHER"}
Indicates the media control command was initiated by neither the user nor the system when the display is turned off.
Last modified on October 29, 2026