@elgato/streamdeck
Version:
The official Node.js SDK for creating Stream Deck plugins.
19 lines (18 loc) • 532 B
JavaScript
import { Event } from "./event.js";
/**
* Provides information for events relating to an application.
*/
export class ApplicationEvent extends Event {
/**
* Monitored application that was launched/terminated.
*/
application;
/**
* Initializes a new instance of the {@link ApplicationEvent} class.
* @param source Source of the event, i.e. the original message from Stream Deck.
*/
constructor(source) {
super(source);
this.application = source.payload.application;
}
}