คลาสอุปกรณ์หลายโซนของ GCK
อุปกรณ์สมาชิกของกลุ่มมัลติโซน
- Since
- 3.1
รับค่า NSObject, <NSCopying> และ <NSSecureCoding>
- (instancetype) initWithJSONObject: |
|
(id) |
JSONObject |
|
เริ่มต้นออบเจ็กต์ด้วยข้อมูล JSON ที่ระบุ
- (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 |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2022-12-05 UTC
[null,null,["อัปเดตล่าสุด 2022-12-05 UTC"],[[["`GCKMultizoneDevice` represents a device within a multizone group, providing information about its status and capabilities."],["It includes properties like `deviceID`, `friendlyName`, `capabilities`, `volumeLevel`, and `muted` to describe the device."],["This class offers methods for initialization using JSON data or specific device attributes."],["Developers can use this class to manage and control individual devices within a multizone setup."],["It inherits from `NSObject`, `NSCopying`, and `NSSecureCoding` for object management and data persistence."]]],[]]