Metode Picker.setCallback
Tentukan metode callback yang dipanggil setiap kali pengguna memilih item (atau
dibatalkan.)
Tanda Tangan
setCallback(method: (response: ResponseObject) => void): Picker;
Detail
Opsional |
Tidak |
Final |
Tidak |
Dengan kontrasepsi |
Tidak |
Statis |
Tidak |
Parameter
Nama |
Jenis |
Opsional |
Deskripsi |
method |
(response: ResponseObject) => void |
Tidak |
|
Hasil
Picker
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 2024-11-09 UTC.
[null,null,["Terakhir diperbarui pada 2024-11-09 UTC."],[[["The `setCallback` method allows you to specify a function that will be executed when the user selects an item or cancels the selection process."],["This callback function receives a `ResponseObject` as an argument, providing information about the user's interaction."],["The `setCallback` method is not optional, final, protected, or static."],["The method returns the `Picker` instance itself, allowing for method chaining."]]],[]]