<GCKDiscoveryManagerListener> Protocol
Stay organized with collections
Save and categorize content based on your preferences.
The GCKDiscoveryManager listener protocol.
- Since
- 3.0
Inherits <NSObjectNSObject>.
- (void) didStartDiscoveryForDeviceCategory: |
|
(NSString *) |
deviceCategory |
|
|
optional |
Called when discovery has started for the given device category.
- (void) willUpdateDeviceList |
|
|
|
|
optional |
Called when the list of discovered devices is about to be updated in some way.
- (void) didUpdateDeviceList |
|
|
|
|
optional |
Called when the list of discovered devices has been updated in some way.
- (void) didInsertDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
|
|
| |
|
optional |
Called when a newly-discovered device has been inserted into the list of devices.
- Parameters
-
device | The device that was inserted. |
index | The list index at which the device was inserted. |
- (void) didUpdateDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
|
|
| |
|
optional |
Called when a previously-discovered device has been updated.
- Parameters
-
device | The device that was updated. |
index | The list index of the device. |
- (void) didUpdateDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
andMoveToIndex: |
|
(NSUInteger) |
newIndex |
|
|
| |
|
optional |
Called when a previously-discovered device has been updated and/or reordered within the list.
- Parameters
-
device | The device that was updated. |
index | The previous list index of the device. |
newIndex | The current list index of the device. |
- (void) didRemoveDeviceAtIndex: |
|
(NSUInteger) |
index |
|
|
optional |
Called when a previously-discovered device has gone offline and has been removed from the list of devices.
- Parameters
-
index | The list index of the device that was removed. |
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."],[[["The `GCKDiscoveryManagerListener` protocol defines methods to receive updates about device discovery status and changes in the discovered device list."],["These methods provide notifications when discovery starts, the device list is about to or has been updated, a device is added, updated, moved, or removed."],["Implement this protocol to track the availability and state of Google Cast devices on the network."],["Each listener method provides information about the specific change, like the device and its index in the list."],["All listener methods are optional, allowing developers to implement only the necessary functionality for their use case."]]],[]]