Contents

sendResponse(_:)

Sends a notification response from the accessory to the system.

Declaration

func sendResponse(_ response: NotificationResponse) async throws

Parameters

  • response:

    The notification response from the accessory.

Discussion

After receiving a message through messageHandler(_:), parse the accessory’s response and create a NotificationResponse instance. Call this method to deliver the response to the system for handling.