沿用 NSObject、<NSCopy> 和 <NSSecureCoding> 的 NSObject。
- (instancetype) initWithJSONObject: |
|
(id) |
JSONObject |
|
- (instancetype) initWithDeviceID: |
|
(NSString *) |
deviceID |
friendlyName: |
|
(NSString *) |
friendlyName |
capabilities: |
|
(NSInteger) |
capabilities |
volumeLevel: |
|
(float) |
volume |
muted: |
|
(BOOL) |
muted |
|
|
| |
指定初始化器。
- Parameters
-
deviceID | The unique device ID. |
friendlyName | The device's friendly name. |
capabilities | The device capabilities. |
volume | The device volume level. |
muted | Whether the device is muted. |
- (NSString*) friendlyName |
|
readnonatomiccopy |
- (NSInteger) capabilities |
|
readwritenonatomicassign |