Represents a response to a notification.
`NotificationResponse` encapsulates all the information the system needs to generate a `UNNotificationResponse` that an application can act on.
Members (9)
get · iOS 26.5+
actionIdentifier
TypeScript
get actionIdentifier(): string
Swift declaration
var actionIdentifier: String
The identifier of the ``AccessoryNotificationAction`` that was selected.
This identifier corresponds to `identifier` from `UNNotificationAction`.
set · iOS 26.5+
actionIdentifier
TypeScript
set actionIdentifier(value: string)
Swift declaration
var actionIdentifier: String
The identifier of the ``AccessoryNotificationAction`` that was selected.
This identifier corresponds to `identifier` from `UNNotificationAction`.
The source application identifier of the notification that the response is being generated for.
set · iOS 26.5+
sourceIdentifier
TypeScript
set sourceIdentifier(value: string)
Swift declaration
var sourceIdentifier: String
The source application identifier of the notification that the response is being generated for.
get · iOS 26.5+
notificationIdentifier
TypeScript
get notificationIdentifier(): string
Swift declaration
var notificationIdentifier: String
The identifier of the notification that the response is being generated for.
This identifier corresponds to the `identifier` of a `UNNotificationRequest`.
set · iOS 26.5+
notificationIdentifier
TypeScript
set notificationIdentifier(value: string)
Swift declaration
var notificationIdentifier: String
The identifier of the notification that the response is being generated for.
This identifier corresponds to the `identifier` of a `UNNotificationRequest`.
get · iOS 26.5+
userText
TypeScript
get userText(): (string) | null
Swift declaration
var userText: String?
The user-entered response for text-input actions.
This corresponds to textual input responding to a `UNTextInputNotificationAction`.
set · iOS 26.5+
userText
TypeScript
set userText(value: (string) | null)
Swift declaration
var userText: String?
The user-entered response for text-input actions.
This corresponds to textual input responding to a `UNTextInputNotificationAction`.