<GCKDiscoveryManagerListener> Protocol

<GCKDiscoveryManagerListener> Protocol Reference

Overview

The GCKDiscoveryManager listener protocol.

Since
3.0

Inherits <NSObjectNSObject>.

Instance Method Summary

(void) - didStartDiscoveryForDeviceCategory:
 Called when discovery has started for the given device category. More...
 
(void) - willUpdateDeviceList
 Called when the list of discovered devices is about to be updated in some way. More...
 
(void) - didUpdateDeviceList
 Called when the list of discovered devices has been updated in some way. More...
 
(void) - didInsertDevice:atIndex:
 Called when a newly-discovered device has been inserted into the list of devices. More...
 
(void) - didUpdateDevice:atIndex:
 Called when a previously-discovered device has been updated. More...
 
(void) - didUpdateDevice:atIndex:andMoveToIndex:
 Called when a previously-discovered device has been updated and/or reordered within the list. More...
 
(void) - didRemoveDeviceAtIndex:
 Called when a previously-discovered device has gone offline and has been removed from the list of devices. More...
 
(void) - didRemoveDevice:atIndex:
 Called when a previously-discovered device has gone offline and has been removed from the list of devices. More...
 

Method Detail

- (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
deviceThe device that was inserted.
indexThe 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
deviceThe device that was updated.
indexThe 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
deviceThe device that was updated.
indexThe previous list index of the device.
newIndexThe 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
indexThe 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
deviceThe device that was removed.
indexThe list index of the device that was removed.
Since
4.1