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.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-26 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"]]