One Logo Pool Ball
AccessoryNotifications · IOS API REFERENCE

NotificationResponse

struct · iOS 26.5+ · SDK 27.1

struct NotificationResponse

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`.

init · iOS 26.5+

init

TypeScript
static init(sourceIdentifier: string, notificationIdentifier: string, actionIdentifier: string, userText?: (string) | null): NotificationResponse
Swift declaration
init(sourceIdentifier: String, notificationIdentifier: String, actionIdentifier: String, userText: String?)
get · iOS 26.5+

sourceIdentifier

TypeScript
get sourceIdentifier(): string
Swift declaration
var sourceIdentifier: String

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`.

Skipped declarations

No declarations were skipped in this snapshot.

All AccessoryNotifications types →