Google menggunakan teknologi AI untuk menerjemahkan konten ke dalam bahasa pilihan Anda. Terjemahan AI mungkin mengandung kesalahan.
GoogleMap.OnMyLocation')}>
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Antarmuka callback saat titik Lokasiku (yang menandakan lokasi pengguna) diklik.
Metode Publik
abstrak
publik
void
onMyLocationClick
(Lokasi lokasi)
Dipanggil saat titik Lokasiku diklik.
Fungsi ini dipanggil di UI thread Android.
Parameter
| lokasi |
Lokasi titik Lokasiku saat ini.
|
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 2026-09-13 UTC.
[null,null,["Terakhir diperbarui pada 2026-09-13 UTC."],[],["The `GoogleMap.OnMyLocationClickListener` interface provides a callback for when the user's location dot on a Google Map is clicked. The key action is the `onMyLocationClick(Location location)` method, which is invoked when the dot is clicked. This method, executed on the UI thread, provides the current `Location` of the user, represented by the clicked dot.\n"]]