GCKDynamicDevice Class
Stay organized with collections
Save and categorize content based on your preferences.
A device object that can be part of a multizone group.
- Since
- 4.3.5
Inherits NSObject, <NSCopying>, and <NSSecureCoding>.
Inherited by GCKMultizoneDevice
.
Returns YES
if the device supports the given capabilities. More...
The friendly name of the device. More...
- (BOOL) hasCapabilities: |
|
(GCKDeviceCapabilities) |
deviceCapabilities
|
|
Returns YES
if the device supports the given capabilities.
- Parameters
-
- (NSString*) friendlyName
read
nonatomic
copy
The friendly name of the device.
- (GCKDeviceCapabilities) capabilities
read
nonatomic
assign
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 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."]]