hammerspoon2-docs
    Preparing search index...

    Function bind

    • Register or remove a callback for a named hammerspoon2:// URL event. The URL format is hammerspoon2://eventName?key=value. The host component (eventName) selects the callback to invoke.

      Parameters

      • eventName: string

        The URL host component identifying the event.

      • callback:
            | (
                (
                    eventName: string,
                    params: Record<string, string>,
                    senderPID: number,
                    fullURL: string,
                ) => void
            )
            | null

        A function receiving (eventName, params, senderPID, fullURL), or null to remove any existing binding.

      Returns void