hammerspoon2-docs
    Preparing search index...

    Interface HSNotificationResponse

    How the user interacted with a notification, passed to its callback

    interface HSNotificationResponse {
        actionIdentifier: string;
        notificationId: string;
        userInfo: Record<string, any>;
        userText?: string;
    }
    Index
    actionIdentifier: string

    "DEFAULT" when the user tapped the notification body; "DISMISS" when dismissed (if .customDismissAction is set); otherwise the action's identifier

    notificationId: string

    The notification's unique identifier

    userInfo: Record<string, any>

    The userInfo object originally passed to create(), if any

    userText?: string

    Text entered in a textInput action; only present when applicable