<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. |
- (void) didRemoveDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
|
|
| |
|
optional |
Called when a previously-discovered device has gone offline and has been removed from the list of devices.
This is an alternative to didRemoveDeviceAtIndex:. If both are implemented, both will be called.
- Parameters
-
device | The device that was removed. |
index | The list index of the device that was removed. |
- Since
- 4.1
- (void) didHaveDiscoveredDeviceWhenStartingDiscovery |
|
|
|
|
optional |
Called when there are some previously-discovered devices in the list before the discovery process starts.
These devices are still valid and not expired since being discovered by the last discovery process. The full list of previously-discovery devices can be obtained by using deviceCount: and deviceAtIndex:.
- Since
- 4.4.1
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 manages the device discovery process, providing updates on discovered Cast devices."],["It provides methods to track the start of device discovery, list updates, insertion, updates, removals, and device reorderings."],["The protocol includes optional methods that allow listeners to get notified about events like when a previously discovered device is still in the list when a new discovery session starts or when some discovered devices are about to be updated or are updated in some way.."],["Since version 4.1, it offers an alternative method for device removal notification."],["Introduced in version 3.0 and updated in subsequent versions with additional functionalities for device discovery management."]]],[]]