רמת GCKDynamicDevice
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
אובייקט מכשיר שיכול להשתייך לקבוצה מרובת אזורים.
- מאז
- 4.3.5
ירש את NSObject, <NS Copy> ו-<NSSecureCoding>.
הועברה בירושה על ידי GCKMultizoneDevice.
|
(instancetype) | - init |
|
(BOOL) | - hasCapabilities: |
| הפונקציה מחזירה את הערך YES אם המכשיר תומך ביכולות הנתונות. עוד...
|
|
- (BOOL) hasCapabilities: |
|
(GCKDeviceCapabilities) |
deviceCapabilities |
|
הפונקציה מחזירה את הערך YES
אם המכשיר תומך ביכולות הנתונות.
- Parameters
-
- (NSString*) friendlyName |
|
readnonatomiccopy |
- (GCKDeviceCapabilities) capabilities |
|
readnonatomicassign |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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."]]