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