Protokol <GCKDiscoveryManagerListener>
Protokol pemroses GCKDiscoveryManager.
- Sejak
- 3,0
Mewarisi <NSObjectNSObject>.
- (void) didStartDiscoveryForDeviceCategory: |
|
(NSString *) |
deviceCategory |
|
|
optional |
Dipanggil saat penemuan dimulai untuk kategori perangkat yang ditentukan.
- (void) willUpdateDeviceList |
|
|
|
|
optional |
Dipanggil saat daftar perangkat yang ditemukan akan diperbarui dengan cara tertentu.
- (void) didUpdateDeviceList |
|
|
|
|
optional |
Dipanggil saat daftar perangkat yang ditemukan telah diperbarui dengan cara tertentu.
- (void) didInsertDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
|
|
| |
|
optional |
Dipanggil saat perangkat yang baru ditemukan telah dimasukkan ke dalam daftar perangkat.
- 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 |
Dipanggil saat perangkat yang sebelumnya ditemukan telah diupdate.
- 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 |
Dipanggil saat perangkat yang sebelumnya ditemukan telah diperbarui dan/atau disusun ulang dalam daftar.
- 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 |
Dipanggil saat perangkat yang sebelumnya ditemukan offline dan dihapus dari daftar perangkat.
- Parameters
-
index | The list index of the device that was removed. |
- (void) didRemoveDevice: |
|
(GCKDevice *) |
device |
atIndex: |
|
(NSUInteger) |
index |
|
|
| |
|
optional |
Dipanggil saat perangkat yang sebelumnya ditemukan offline dan dihapus dari daftar perangkat.
Ini adalah alternatif untuk didRemoveDeviceAtIndex:. Jika keduanya diterapkan, keduanya akan dipanggil.
- Parameters
-
device | The device that was removed. |
index | The list index of the device that was removed. |
- Sejak
- 4,1
- (void) didHaveDiscoveredDeviceWhenStartingDiscovery |
|
|
|
|
optional |
Dipanggil saat ada beberapa perangkat yang sebelumnya ditemukan dalam daftar sebelum proses penemuan dimulai.
Perangkat ini masih valid dan belum habis masa berlakunya sejak ditemukan oleh proses penemuan terakhir. Daftar lengkap perangkat yang sebelumnya ditemukan dapat diperoleh dengan menggunakan deviceCount: dan deviceAtIndex:.
- Sejak
- 4.4.1
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2023-12-01 UTC.
[null,null,["Terakhir diperbarui pada 2023-12-01 UTC."],[[["The `GCKDiscoveryManagerListener` protocol manages the device discovery process, providing updates on discovered Cast devices."],["It provides methods to track the start of device discovery, list updates, insertion, updates, removals, and device reorderings."],["The protocol includes optional methods that allow listeners to get notified about events like when a previously discovered device is still in the list when a new discovery session starts or when some discovered devices are about to be updated or are updated in some way.."],["Since version 4.1, it offers an alternative method for device removal notification."],["Introduced in version 3.0 and updated in subsequent versions with additional functionalities for device discovery management."]]],[]]