Lớp GCKMultizoneDevice
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Một thiết bị thành viên của nhóm nhiều khu vực.
- Năm thành lập
- 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. |
Mã nhận dạng duy nhất của thiết bị.
- (NSString*) friendlyName |
|
readnonatomiccopy |
- (NSInteger) capabilities |
|
readwritenonatomicassign |
Các tính năng của thiết bị.
Mức âm lượng của thiết bị.
Thiết bị có ở chế độ 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: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[],["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"],null,[]]