One Logo Pool Ball
AccessoryNotifications · IOS API REFERENCE

NotificationsForwarding.Session

class · iOS 26.5+ · SDK 27.1

final class Session

Members (3)

method · iOS 26.5+

removeNotifications

TypeScript
removeNotifications(identifiers: Array<AccessoryNotification_Identifier>): Promise<void>
Swift declaration
final func removeNotifications(identifiers: [AccessoryNotification.Identifier]) async throws

Remove notifications. - Parameters: - identifiers: An array of notification identifiers to clear. - Throws: An error if the system could not receive the request to remove notifications. This method has equivalent behavior to clearing the same notifications from Notification Center on the phone. Actions are not sent to the app for removed notifications. This method only throws for errors receiving the request to remove notifications. It does not throw if some of the identifiers could not be cleared because they have already been removed.

method · iOS 26.5+

sendResponse

TypeScript
sendResponse(response: NotificationResponse): Promise<void>
Swift declaration
final func sendResponse(_ response: NotificationResponse) async throws

Send a notification response from an accessory. - Parameters: - response: The notification response. - accessory: The accessory that generated the notification response. - Throws: An error if the response could not be accepted by the system.

method · iOS 26.5+

send

TypeScript
send(message: _AccessoryTransportExtension_AccessoryMessage): Promise<void>
Swift declaration
final func send(message: AccessoryMessage) async throws

Send a message to the paired accessory. - Parameters: - message: The message to send to the accessory. - Throws: An error if the message could not be sent.

Skipped declarations

No declarations were skipped in this snapshot.

All AccessoryNotifications types →