Global Variable

UNNotificationDismissActionIdentifier

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

Declaration

NSString *const UNNotificationDismissActionIdentifier;

Discussion

This action is delivered only if the notification’s category object was configured with the UNNotificationCategoryOptionCustomDismissAction 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

actionIdentifier

The identifier string of the action that the user selected.

notification

The notification to which the user responded.

UNNotificationDefaultActionIdentifier

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