Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Protokol <GCKDiscoveryManagerListener>
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
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 2025-07-25 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-25 UTC."],[],["The GCKDiscoveryManagerListener protocol manages device discovery. Key actions include being notified when discovery starts for a device category and when the device list is updated. Notifications are triggered when devices are inserted, updated, or removed from the list, with index information provided. The protocol also handles updates where devices are reordered in the list and when devices were already discovered before starting the discovery process. These updates provide device details and their positions within the list.\n"]]