Instance Property

protocolStrings

The communication protocols supported by the accessory.

Declaration

@property(nonatomic, readonly) NSArray<NSString *> *protocolStrings;

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

name

The display name of the accessory.

manufacturer

The name of the accessory’s manufacturer.

modelNumber

The model information for the accessory.

serialNumber

The serial number of the accessory.

firmwareRevision

The current firmware version for the accessory.

hardwareRevision

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