Contents

send(message:)

Sends a message to the paired accessory.

Declaration

func send(message: AccessoryMessage) async throws

Parameters

  • message:

    The message to send to the accessory.

Discussion

Create an AccessoryMessage containing your notification data and send it to your accessory. The system encrypts the message before delivering it to the transport extension for transmission.