<GCKDiscoveryManagerListener> 通訊協定

<GCKDiscoveryManagerListener> 通訊協定參考資料

總覽

GCKDiscoveryManager 事件監聽器通訊協定。

辛策
3.0

沿用 <NSObjectNSObject>。

執行個體方法摘要

(void) - didStartDiscoveryForDeviceCategory:
 在探索指定裝置類別時呼叫。更多...
 
(void) - willUpdateDeviceList
 當發現的裝置清單即將以某種方式更新時呼叫。更多...
 
(void) - didUpdateDeviceList
 當找到的裝置清單以某種方式更新時呼叫。更多...
 
(void) - didInsertDevice:atIndex:
 將新發現的裝置插入裝置清單時呼叫。更多...
 
(void) - didUpdateDevice:atIndex:
 在先前發現的裝置更新時呼叫。更多...
 
(void) - didUpdateDevice:atIndex:andMoveToIndex:
 當先前發現的裝置在清單中更新及/或重新排序時呼叫。更多...
 
(void) - didRemoveDeviceAtIndex:
 在先前已發現的裝置離線時從裝置清單中移除。更多...
 

方法說明

- (void) didStartDiscoveryForDeviceCategory: (NSString *)  deviceCategory
optional

在探索指定裝置類別時呼叫。

- (void) willUpdateDeviceList
optional

當發現的裝置清單即將以某種方式更新時呼叫。

- (void) didUpdateDeviceList
optional

當找到的裝置清單以某種方式更新時呼叫。

- (void) didInsertDevice: (GCKDevice *)  device
atIndex: (NSUInteger)  index 
optional

將新發現的裝置插入裝置清單時呼叫。

Parameters
deviceThe device that was inserted.
indexThe list index at which the device was inserted.
- (void) didUpdateDevice: (GCKDevice *)  device
atIndex: (NSUInteger)  index 
optional

在先前發現的裝置更新時呼叫。

Parameters
deviceThe device that was updated.
indexThe list index of the device.
- (void) didUpdateDevice: (GCKDevice *)  device
atIndex: (NSUInteger)  index
andMoveToIndex: (NSUInteger)  newIndex 
optional

當先前發現的裝置在清單中更新及/或重新排序時呼叫。

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

在先前已發現的裝置離線時從裝置清單中移除。

Parameters
indexThe list index of the device that was removed.