init(sessionID:data:)
Initializes a transport message for a specific capability session.
Declaration
init(sessionID: UUID, data: Data)Parameters
- sessionID:
A unique identifier for the session capability (such as notifications or Live Activities). The system generates this identifier at feature enrollment time, and the value is fixed while the accessory remains paired through AccessorySetupKit.
- data:
The message data to send.
Discussion
Create transport messages when your accessory sends data back to the data provider through sendMessageToDataProvider(_:).