hammerspoon2-docs
    Preparing search index...

    Function addWatcher

    • Add a watcher for application AX events

      Parameters

      • application: HSApplication

        An HSApplication object

      • notification: string

        An event name

      • listener: (notification: string, element: HSAXElement) => void

        A function called with the notification name and the accessibility element it applies to

      Returns void