hammerspoon2-docs
    Preparing search index...

    Function off

    • Remove a previously registered listener for AX events on a specific element

      Listeners for an element that has been destroyed, or whose application has quit, are removed automatically, so this is only needed to stop watching an element that still exists.

      Parameters

      • element: HSAXElement

        The HSAXElement that was passed to on

      • notification: string | string[]

        The event name, or array of event names, to stop watching

      • listener: (...args: any[]) => any

        The function/lambda provided when adding the watcher

      Returns void