pub enum Message<G, S, M> {
Show 16 variants
KeyDown {
action: String,
context: String,
device: String,
payload: KeyPayload<S>,
},
KeyUp {
action: String,
context: String,
device: String,
payload: KeyPayload<S>,
},
WillAppear {
action: String,
context: String,
device: Option<String>,
payload: VisibilityPayload<S>,
},
WillDisappear {
action: String,
context: String,
device: Option<String>,
payload: VisibilityPayload<S>,
},
TitleParametersDidChange {
action: String,
context: String,
device: Option<String>,
payload: TitleParametersPayload<S>,
},
DeviceDidConnect {
device: String,
device_info: DeviceInfo,
},
DeviceDidDisconnect {
device: String,
},
ApplicationDidLaunch {
payload: ApplicationPayload,
},
ApplicationDidTerminate {
payload: ApplicationPayload,
},
SendToPlugin {
action: String,
context: String,
payload: M,
},
DidReceiveSettings {
action: String,
context: String,
device: String,
payload: KeyPayload<S>,
},
PropertyInspectorDidAppear {
action: String,
context: String,
device: String,
},
PropertyInspectorDidDisappear {
action: String,
context: String,
device: String,
},
DidReceiveGlobalSettings {
payload: GlobalSettingsPayload<G>,
},
SystemDidWakeUp,
Unknown,
}
Expand description
A message received from the Stream Deck software.
G
represents the global settings that are persisted within the Stream Deck software.S
represents the settings that are persisted within the Stream Deck software.M
represents the messages that are received from the property inspector.
Variants§
KeyDown
A key has been pressed.
Fields
payload: KeyPayload<S>
Additional information about the key press.
KeyUp
A key has been released.
Fields
payload: KeyPayload<S>
Additional information about the key press.
WillAppear
An instance of the action has been added to the display.
Fields
device: Option<String>
The device where the action will appear, or None if it does not appear on a device.
payload: VisibilityPayload<S>
Additional information about the action’s appearance.
WillDisappear
An instance of the action has been removed from the display.
Fields
payload: VisibilityPayload<S>
Additional information about the action’s appearance.
TitleParametersDidChange
The title has changed for an instance of an action.
Fields
payload: TitleParametersPayload<S>
Additional information about the new title.
DeviceDidConnect
A device has connected.
Fields
device_info: DeviceInfo
Information about the device.
DeviceDidDisconnect
A device has disconnected.
ApplicationDidLaunch
An application monitored by the manifest file has launched.
Fields
payload: ApplicationPayload
Information about the launched application.
ApplicationDidTerminate
An application monitored by the manifest file has terminated.
Fields
payload: ApplicationPayload
Information about the terminated application.
SendToPlugin
The property inspector has sent data.
Fields
payload: M
Information sent from the property inspector.
DidReceiveSettings
The application has sent settings for an action.
This message is sent in response to GetSettings, but also after the property inspector changes the settings.
Fields
payload: KeyPayload<S>
The current settings for the action.
PropertyInspectorDidAppear
The property inspector for an action has become visible.
Fields
PropertyInspectorDidDisappear
The property inspector for an action is no longer visible.
Fields
DidReceiveGlobalSettings
The application has sent settings for an action.
This message is sent in response to GetGlobalSettings, but also after the property inspector changes the settings.
Fields
payload: GlobalSettingsPayload<G>
The current settings for the action.
SystemDidWakeUp
The computer has resumed from sleep.
Added in Stream Deck software version 4.3.
Unknown
An event from an unsupported version of the Stream Deck software.
This occurs when the Stream Deck software sends an event that is not understood. Usually this will be because the Stream Deck software is newer than the plugin, and it should be safe to ignore these.