继承 <NSObjectNSObject>。
- (void) didStartDiscoveryForDeviceCategory: |
|
(NSString *) |
deviceCategory |
|
|
optional |
- (void) willUpdateDeviceList |
|
|
|
|
optional |
- (void) didUpdateDeviceList |
|
|
|
|
optional |
- (void) didInsertDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
|
|
| |
|
optional |
当新发现的设备插入到设备列表中时调用。
- 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 |
在之前发现的设备更新时调用。
- 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 |
当列表中发现的设备进行更新和/或重新排序时调用。
- 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 |
当之前发现的设备处于离线状态并已从设备列表中移除时调用。
- Parameters
-
index | The list index of the device that was removed. |
- (void) didRemoveDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
|
|
| |
|
optional |
当之前发现的设备处于离线状态并已从设备列表中移除时调用。
这是 didRemoveDeviceAtIndex: 的替代方法。如果两种方法都实现,则将调用二者。
- Parameters
-
device | The device that was removed. |
index | The list index of the device that was removed. |
- 开始时间
- 4.1
- (void) didHaveDiscoveredDeviceWhenStartingDiscovery |
|
|
|
|
optional |
在发现过程开始之前,在列表中存在一些之前发现的设备时调用。
自上次发现进程发现后,这些设备仍然有效且未过期。可以使用 deviceCount: 和 deviceAtIndex: 获取之前发现的设备的完整列表。
- 开始时间
- 4.4.1