GCKDynamicDevice クラス
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
マルチゾーン グループに含めることができるデバイス オブジェクト。
- 開始:
- 4.3.5
NSObject、<NSCopying>、<NSSecureCoding> を継承します。
GCKMultizoneDevice によって継承されます。
- (BOOL) hasCapabilities: |
|
(GCKDeviceCapabilities) |
deviceCapabilities |
|
デバイスが指定された機能をサポートしている場合、YES
を返します。
- Parameters
-
- (NSString*) friendlyName |
|
readnonatomiccopy |
- (GCKDeviceCapabilities) capabilities |
|
readnonatomicassign |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eThe \u003ccode\u003eGCKDynamicDevice\u003c/code\u003e class represents a device that can be part of a multizone group and inherits from \u003ccode\u003eNSObject\u003c/code\u003e, \u003ccode\u003eNSCopying\u003c/code\u003e, and \u003ccode\u003eNSSecureCoding\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides properties to access the device's unique ID (\u003ccode\u003edeviceID\u003c/code\u003e), friendly name (\u003ccode\u003efriendlyName\u003c/code\u003e), and capabilities (\u003ccode\u003ecapabilities\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eYou can check if a device supports specific capabilities using the \u003ccode\u003ehasCapabilities:\u003c/code\u003e instance method.\u003c/p\u003e\n"],["\u003cp\u003eThis class is the base class for \u003ccode\u003eGCKMultizoneDevice\u003c/code\u003e, which handles multizone functionalities.\u003c/p\u003e\n"]]],["The `GCKDynamicDevice` class represents a device in a multizone group. It can be initialized via `-init`. Key actions include checking device capabilities using `hasCapabilities:`, which verifies if the device supports specific capabilities using a bitwise-OR of `GCKDeviceCapability` constants. Core information includes the device's `deviceID`, a unique identifier; `friendlyName`, the user-friendly device name; and `capabilities`, which are the device's operational abilities, all accessible as read-only properties.\n"],null,["# GCKDynamicDevice Class\n\n[Instance Methods](#pub-methods) \\| [Properties](#properties) \nGCKDynamicDevice Class Reference \n\nOverview\n--------\n\nA device object that can be part of a multizone group.\n\nSince\n: 4.3.5\n\nInherits NSObject, \\\u003cNSCopying\\\u003e, and \\\u003cNSSecureCoding\\\u003e.\n\nInherited by [GCKMultizoneDevice](/cast/docs/reference/ios/interface_g_c_k_multizone_device).\n\n|----------------|-----------------------------------------------------------------------------------------------------------------|\n| Instance Method Summary ----------------------- ||\n| (instancetype) | - **init** |\n| ||\n| (BOOL) | - [hasCapabilities:](/cast/docs/reference/ios/interface_g_c_k_dynamic_device#aa96b679416b818b6d12544d984f77b30) |\n| | Returns `YES` if the device supports the given capabilities. [More...](#aa96b679416b818b6d12544d984f77b30) |\n| ||\n\n|-----------------------|-----------------------------------------------------------------------------------------------------------|\n| Property Summary ---------------- ||\n| NSString \\* | [deviceID](/cast/docs/reference/ios/interface_g_c_k_dynamic_device#a762b2a3a80801019058f0f685149518e) |\n| | The unique device ID. [More...](#a762b2a3a80801019058f0f685149518e) |\n| ||\n| NSString \\* | [friendlyName](/cast/docs/reference/ios/interface_g_c_k_dynamic_device#a12d89fee393b6329d1e35a1a2b693d70) |\n| | The friendly name of the device. [More...](#a12d89fee393b6329d1e35a1a2b693d70) |\n| ||\n| GCKDeviceCapabilities | [capabilities](/cast/docs/reference/ios/interface_g_c_k_dynamic_device#a2168f666d0e095558774c2bedeb719f5) |\n| | The device capabilities. [More...](#a2168f666d0e095558774c2bedeb719f5) |\n| ||\n\nMethod Detail\n-------------\n\n|---------------------------|---|-------------------------|----------------------|---|\n| - (BOOL) hasCapabilities: | | (GCKDeviceCapabilities) | *deviceCapabilities* | |\n\nReturns `YES` if the device supports the given capabilities.\n\nParameters\n:\n\n |--------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n | deviceCapabilities | A bitwise-OR of one or more of the [GCKDeviceCapability](/cast/docs/reference/ios/g_c_k_device_8h#a3f046cbbfd046c131267eb314380727d) constants. |\n\n\nProperty Detail\n---------------\n\n|---------------------------------------------------------|-------------------|\n| |-------------------------| | - (NSString\\*) deviceID | | readnonatomiccopy |\n\nThe unique device ID. \n\n|-----------------------------------------------------------------|-------------------|\n| |-----------------------------| | - (NSString\\*) friendlyName | | readnonatomiccopy |\n\nThe friendly name of the device. \n\n|---------------------------------------------------------------------------------------|---------------------|\n| |----------------------------------------| | - (GCKDeviceCapabilities) capabilities | | readnonatomicassign |\n\nThe device capabilities."]]