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