@elgato/streamdeck
Version:
The official Node.js SDK for creating Stream Deck plugins.
22 lines (21 loc) • 657 B
JavaScript
import { Event } from "./event.js";
/**
* Provides information for an event triggered by a message being sent to the plugin, from the property inspector.
*/
export class SendToPluginEvent extends Event {
action;
/**
* Payload sent from the property inspector.
*/
payload;
/**
* Initializes a new instance of the {@link SendToPluginEvent} class.
* @param action Action that raised the event.
* @param source Source of the event, i.e. the original message from Stream Deck.
*/
constructor(action, source) {
super(source);
this.action = action;
this.payload = source.payload;
}
}