Lớp GCKMultizoneDevice
Thiết bị thành viên của nhóm nhiều vùng.
- Since
- 3.1
Kế thừa NSObject, <NSCopying> và <NSSecureCoding>.
- (instancetype) initWithJSONObject: |
|
(id) |
JSONObject |
|
Khởi tạo đối tượng bằng dữ liệu JSON đã cho.
- (instancetype) initWithDeviceID: |
|
(NSString *) |
deviceID |
friendlyName: |
|
(NSString *) |
friendlyName |
capabilities: |
|
(NSInteger) |
capabilities |
volumeLevel: |
|
(float) |
volume |
muted: |
|
(BOOL) |
muted |
|
|
| |
Trình khởi tạo được chỉ định.
- 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 |
Tên thân thiện của thiết bị.
- (NSInteger) capabilities |
|
readwritenonatomicassign |
Mức âm lượng của thiết bị.
Liệu thiết bị có bị tắt tiếng hay không.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2022-12-05 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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."]]],["The GCKMultizoneDevice class represents a device in a multizone group. It can be initialized with JSON data or specific parameters: `deviceID`, `friendlyName`, `capabilities`, `volumeLevel`, and `muted`. The class stores the device's unique ID, its user-friendly name, its capabilities, the current volume level, and whether it's muted. It also inherits `NSObject`, `NSCopying`, and `NSSecureCoding` and is a member of a multizone group.\n"]]