Initializes the session for the specified accessory and protocol.
- iOS 3.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 10.0+
The accessory with which you want to communicate. You can get a list of accessory objects from the
The protocol to use when communicating with the accessory. This protocol must be one that the accessory understands. All communications with the accessory are expected to use this protocol.
The initialized session object. This method may return
nil if the accessory does not recognize the specified protocol or there was an error communicating with the accessory.
There can be only one session object at a time for a given accessory and protocol combination.