Instance Property

protocolStrings

The communication protocols supported by the accessory.

Declaration

var protocolStrings: [String] { get }

Discussion

Protocol names are formatted as reverse-DNS strings. For example, the string “com.apple.myProtocol” might represent a custom protocol defined by Apple. Manufacturers can define custom protocols for their accessories or work with other manufacturers and organizations to define standard protocols for different accessory types.

When encountering a new accessory, always check the list of supported protocols for the one you expect to use before creating a session. Even an accessory that you recognize by its other properties may not be prepared to support a protocol that it normally does. For example, an accessory may be connected but not yet authenticated, in which case the array of supported protocols will be empty.

If your application supports multiple protocols for a single accessory, your code should always choose the highest-fidelity protocol that you support.

See Also

Getting the Manufacturer-Supplied Attributes

var name: String

The display name of the accessory.

var manufacturer: String

The name of the accessory’s manufacturer.

var modelNumber: String

The model information for the accessory.

var serialNumber: String

The serial number of the accessory.

var firmwareRevision: String

The current firmware version for the accessory.

var hardwareRevision: String

The hardware version of the accessory.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software