Contents

UNNotificationDismissActionIdentifier

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

Declaration

let UNNotificationDismissActionIdentifier: String

Discussion

The system delivers this action only if your app configured the notification’s category object 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 doesn’t trigger this action.

See Also

Getting the Response Information