Global Variable

UNNotificationDismissActionIdentifier

The action that indicates the user explicitly dismissed the notification interface.

Declaration

let UNNotificationDismissActionIdentifier: String

Discussion

This action is delivered only if the notification’s category object was configured with the customDismissAction option. To trigger this action, the user must explicitly dismiss the notification interface. For example, the user must tap the Dismiss button or swipe down on the notification interface in watchOS to trigger this action.

Ignoring a notification or flicking away a notification banner does not trigger this action.

See Also

Getting the Response Information

var actionIdentifier: String

The identifier string of the action that the user selected.

var notification: UNNotification

The notification to which the user responded.

let UNNotificationDefaultActionIdentifier: String

An action that indicates the user opened the app from the notification interface.