new DeviceAccessory()
- Source:
Methods
(static) DeviceAccessory#getAssociatedDevice() → {base.Reference}
Get the field value
The device that this accessory is currently connected to, a 128-bit UUID, not a normal base-13 Clover ID.
- Source:
Returns:
- Type
- base.Reference
(static) DeviceAccessory#getBuildType() → {device.DeviceAccessoryBuildType}
Get the field value
- Source:
Returns:
(static) DeviceAccessory#getCreatedTime() → {Number}
Get the field value
- Source:
Returns:
must be a long integer
- Type
- Number
(static) DeviceAccessory#getCurrentRom() → {base.Reference}
Get the field value
- Source:
Returns:
- Type
- base.Reference
(static) DeviceAccessory#getDeviceType() → {base.Reference}
Get the field value
- Source:
Returns:
- Type
- base.Reference
(static) DeviceAccessory#getId() → {String}
Get the field value
Unique identifier
- Source:
Returns:
- Type
- String
(static) DeviceAccessory#getModel() → {String}
Get the field value
- Source:
Returns:
- Type
- String
(static) DeviceAccessory#getModifiedTime() → {Number}
Get the field value
- Source:
Returns:
must be a long integer
- Type
- Number
(static) DeviceAccessory#getPedCertificate() → {String}
Get the field value
- Source:
Returns:
- Type
- String
(static) DeviceAccessory#getSecureReports() → {Array.<base.Reference>}
Get the field value
- Source:
Returns:
An array of
- Type
- Array.<base.Reference>
(static) DeviceAccessory#getSerial() → {String}
Get the field value
The accessories' serial number.
- Source:
Returns:
- Type
- String
(static) DeviceAccessory#getVersionCode() → {Number}
Get the field value
- Source:
Returns:
must be a long integer
- Type
- Number
(static) DeviceAccessory#setAssociatedDevice(associatedDevice)
Set the field value
The device that this accessory is currently connected to, a 128-bit UUID, not a normal base-13 Clover ID.
Parameters:
Name | Type | Description |
---|---|---|
associatedDevice |
base.Reference |
- Source:
(static) DeviceAccessory#setBuildType(buildType)
Set the field value
Parameters:
Name | Type | Description |
---|---|---|
buildType |
device.DeviceAccessoryBuildType |
- Source:
(static) DeviceAccessory#setCreatedTime(createdTime)
Set the field value
Parameters:
Name | Type | Description |
---|---|---|
createdTime |
Number | must be a long integer |
- Source:
(static) DeviceAccessory#setCurrentRom(currentRom)
Set the field value
Parameters:
Name | Type | Description |
---|---|---|
currentRom |
base.Reference |
- Source:
(static) DeviceAccessory#setDeviceType(deviceType)
Set the field value
Parameters:
Name | Type | Description |
---|---|---|
deviceType |
base.Reference |
- Source:
(static) DeviceAccessory#setId(id)
Set the field value
Unique identifier
Parameters:
Name | Type | Description |
---|---|---|
id |
String |
- Source:
(static) DeviceAccessory#setModel(model)
Set the field value
Parameters:
Name | Type | Description |
---|---|---|
model |
String |
- Source:
(static) DeviceAccessory#setModifiedTime(modifiedTime)
Set the field value
Parameters:
Name | Type | Description |
---|---|---|
modifiedTime |
Number | must be a long integer |
- Source:
(static) DeviceAccessory#setPedCertificate(pedCertificate)
Set the field value
Parameters:
Name | Type | Description |
---|---|---|
pedCertificate |
String |
- Source:
(static) DeviceAccessory#setSecureReports(secureReports)
Set the field value
Parameters:
Name | Type | Description |
---|---|---|
secureReports |
Array.<base.Reference> | An array of |
- Source:
(static) DeviceAccessory#setSerial(serial)
Set the field value
The accessories' serial number.
Parameters:
Name | Type | Description |
---|---|---|
serial |
String |
- Source:
(static) DeviceAccessory#setVersionCode(versionCode)
Set the field value
Parameters:
Name | Type | Description |
---|---|---|
versionCode |
Number | must be a long integer |
- Source: