โปรโตคอล 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. |
- (void) didRemoveDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
|
|
| |
|
optional |
เรียกใช้เมื่ออุปกรณ์ที่พบก่อนหน้านี้ได้ออฟไลน์และถูกนำออกจากรายการอุปกรณ์แล้ว
นี่เป็นอีกวิธีหนึ่งที่ใช้แทน didRemoveDeviceAtIndex: หากมีการติดตั้งใช้งานทั้งคู่ ระบบจะเรียกใช้ทั้ง 2 รายการ
- Parameters
-
device | The device that was removed. |
index | The list index of the device that was removed. |
- Since
- 4.1
- (void) didHaveDiscoveredDeviceWhenStartingDiscovery |
|
|
|
|
optional |
มีการเรียกใช้เมื่อมีอุปกรณ์ที่ค้นพบก่อนหน้านี้บางรายการในรายการก่อนกระบวนการค้นหาจะเริ่มขึ้น
อุปกรณ์เหล่านี้ยังใช้งานได้และไม่หมดอายุนับตั้งแต่ที่กระบวนการค้นหาครั้งล่าสุดค้นพบ คุณสามารถดูรายการอุปกรณ์ทั้งหมดที่ค้นพบก่อนหน้านี้ได้โดยใช้ deviceCount: และ deviceAtIndex:
- Since
- 4.4.1