Instance Property

actionIdentifier

The identifier string of the action that the user selected.

Declaration

var actionIdentifier: String { get }

Discussion

This parameter may contain one the identifier of one of your UNNotificationAction objects or it may contain a system-defined identifier. The system defined identifiers are UNNotificationDefaultActionIdentifier and UNNotificationDismissActionIdentifier, which indicate that the user opened the app or dismissed the notification without any further actions.

For more information about defining custom actions, see Declaring Your Actionable Notification Types.

See Also

Getting the Response Information

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.

let UNNotificationDismissActionIdentifier: String

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