Accessory Class
Objects of this class represent the external accessories.
Item Index
Methods
Methods
equals
-
otherAccessory
Compares this Accessory object to another.
Parameters:
-
otherAccessory
Accessory
Returns:
true
if the two objects refer to the same
accessory.
openSession
-
params
Opens a session to the accessory.
Parameters:
-
params
ObjectAn object with the following properties:
-
protocol
StringThe name of the protocol to be used for the connection.
-
Returns:
An object representing the session, or null if the session could not be opened.
Properties
connectionID
Number
read-only
The accessory’s unique connection ID to the iOS-based device. The connection ID uniquely identifies this accessory to the device. If multiple accessories of the same type are connected to the device, you can use this information to distinguish between them.
The connection ID for an accessory persists only for the duration of the current connection. If the accessory is disconnected and reconnected, a new connection ID is assigned.
firmwareRevision
String
read-only
Firmware revision of the accessory.
hardwareRevision
String
read-only
Hardware revision of the accessory.
isConnected
Boolean
read-only
Specifies whether or not the accessory is currently connected.
manufacturer
String
read-only
Manufacturer of the accessory.
modelNumber
String
read-only
Model number of the accessory.
name
String
read-only
Name of the accessory.
protocolStrings
Array of Strings
read-only
The name of the protocols supported by the accessory.
serialNumber
String
read-only
Serial number of the accessory.