GCKMultizoneStatus 类
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
继承 NSObject、<NSCopy> 和 <NSSecureCoding>。
- (instancetype) initWithJSONObject: |
|
(id) |
JSONObject |
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003eGCKMultizoneStatus\u003c/code\u003e encapsulates the current status of a multizone group, including information about its member devices.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods for initialization using JSON data or a list of \u003ccode\u003eGCKMultizoneDevice\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edevices\u003c/code\u003e property offers access to an array of \u003ccode\u003eGCKMultizoneDevice\u003c/code\u003e instances, representing the members of the multizone group.\u003c/p\u003e\n"],["\u003cp\u003eThis class has been available since version 3.1 of the framework and inherits from \u003ccode\u003eNSObject\u003c/code\u003e, \u003ccode\u003eNSCopying\u003c/code\u003e, and \u003ccode\u003eNSSecureCoding\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `GCKMultizoneStatus` class represents the status of a multizone group and inherits from `NSObject`, `NSCopying`, and `NSSecureCoding`. It can be initialized with JSON data or a list of member devices via `initWithJSONObject:` and `initWithDevices:`. The class also contains a read-only property, `devices`, which is an array of `GCKMultizoneDevice` objects representing the members of the multizone group.\n"],null,["# GCKMultizoneStatus Class\n\n[Instance Methods](#pub-methods) \\| [Properties](#properties) \nGCKMultizoneStatus Class Reference \n\nOverview\n--------\n\nThe status of a multizone group.\n\nSince\n: 3.1\n\nInherits NSObject, \\\u003cNSCopying\\\u003e, and \\\u003cNSSecureCoding\\\u003e.\n\n|----------------|----------------------------------------------------------------------------------------------------------------------|\n| Instance Method Summary ----------------------- ||\n| (instancetype) | - [initWithJSONObject:](/cast/docs/reference/ios/interface_g_c_k_multizone_status#a2e040726bf8cf82c05026046d8055a29) |\n| | Initializes the object with the given JSON data. [More...](#a2e040726bf8cf82c05026046d8055a29) |\n| ||\n| (instancetype) | - [initWithDevices:](/cast/docs/reference/ios/interface_g_c_k_multizone_status#a3b92366635c2f430106b6b1c9afc6c01) |\n| | Initializes the object with the given list of member devices. [More...](#a3b92366635c2f430106b6b1c9afc6c01) |\n| ||\n| (instancetype) | - **init** |\n| ||\n\n|----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|\n| Property Summary ---------------- ||\n| NSArray\\\u003c [GCKMultizoneDevice](/cast/docs/reference/ios/interface_g_c_k_multizone_device) \\* \\\u003e \\* | [devices](/cast/docs/reference/ios/interface_g_c_k_multizone_status#ab90cd1f1d2349fab48fd92d2a2857e70) |\n| | The member devices of the multizone group. [More...](#ab90cd1f1d2349fab48fd92d2a2857e70) |\n| ||\n\nMethod Detail\n-------------\n\n|--------------------------------------|---|------|--------------|---|\n| - (instancetype) initWithJSONObject: | | (id) | *JSONObject* | |\n\nInitializes the object with the given JSON data. \n\n|-----------------------------------|---|------------------------------------------------------------------------------------------------------|-----------|---|\n| - (instancetype) initWithDevices: | | (NSArray\\\u003c [GCKMultizoneDevice](/cast/docs/reference/ios/interface_g_c_k_multizone_device) \\* \\\u003e \\*) | *devices* | |\n\nInitializes the object with the given list of member devices.\n\nProperty Detail\n---------------\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------|\n| |-------------------------------------------------------------------------------------------------------------| | - (NSArray\\\u003c[GCKMultizoneDevice](/cast/docs/reference/ios/interface_g_c_k_multizone_device) \\*\\\u003e\\*) devices | | readnonatomiccopy |\n\nThe member devices of the multizone group."]]