Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StreamDeckPluginHandler<GlobalSettings>

This will help you create the stream deck action handler

author

XeroxDev help@xeroxdev.de

copyright

2021

Type parameters

  • GlobalSettings = any

Hierarchy

Index

Constructors

Protected constructor

Accessors

actionManager

connectionReady

  • get connectionReady(): boolean

documentReady

  • get documentReady(): boolean

globalSettingsReady

  • get globalSettingsReady(): boolean

info

port

  • get port(): string

registerEvent

  • get registerEvent(): string

settingsManager

uuid

  • get uuid(): string

Methods

Protected _eventHandler

  • _eventHandler(ev: MessageEvent<any>): void

enableDebug

  • enableDebug(): void

logMessage

  • logMessage(message: string): void

openUrl

  • openUrl(url: string): void

requestGlobalSettings

  • requestGlobalSettings(): void

requestSettings

  • requestSettings(context: string): void

send

  • send(event: string, data: any): void

sendToPropertyInspector

  • sendToPropertyInspector(payload: any, action: string, context: string): void
  • Send data to the property inspector

    Parameters

    • payload: any

      Data to send

    • action: string

      Action context.

    • context: string

      The context which called it

    Returns void

setImage

  • Sets the action image

    Parameters

    • image: string

      Image as string

    • context: string

      The context which called it

    • target: TargetType = ...

      Show image only on hardware, software or both (default: Both)

    • Optional state: StateType

      Show image only on ON state or OFF state (default: Both)

    Returns void

setImageFromUrl

  • setImageFromUrl(url: string, context: string, target?: TargetType, state?: StateType): Promise<string>

setState

  • setState(state: StateType, context: string): void

setTitle

  • Sets the action title

    Parameters

    • title: string

      The string the title should be

    • context: string

      The context which called it

    • target: TargetType = ...

      Show title only on hardware, software or both (default: Both)

    • Optional state: StateType

      Show title only on ON state or OFF state (default: Both)

    Returns void

showAlert

  • showAlert(context: string): void

showOk

  • showOk(context: string): void

switchToProfile

  • switchToProfile(profile: string, device?: string): void

Generated using TypeDoc