<GCKDiscoveryManagerListener> Protocol

  • The GCKDiscoveryManagerListener protocol is used to listen for events related to the device discovery process.

  • This protocol includes methods for being notified when discovery starts, when the list of discovered devices is about to be or has been updated, and when devices are inserted, updated, or removed from the list.

  • Methods are provided to specifically handle the insertion of new devices, updates to existing devices (including reordering), and the removal of offline devices from the discovered list.

<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...
 

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.