hammerspoon2-docs
    Preparing search index...

    Function on

    • Register a listener for Stream Deck connect/disconnect events.

      Parameters

      • event: "connected" | "disconnected"

        The event to listen for

      • listener: (device: HSStreamDeckDevice) => void

        Called with the affected device when a matching event occurs

      Returns void

      Throws an Error on failure; wrap calls in try/catch to handle it.