โปรโตคอล Listener ของ GCKDiscoveryManager
- Since
- 3.0
รับค่า <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. |