Googlemap.OnMyLocationClickListener
ממשק קריאה חוזרת (callback) ללחיצה על הנקודה 'המיקום שלי' (שמצביעה על מיקום המשתמש).
שיטות ציבוריות
מופשט ציבורי
ריק
onMyLocationClick
(מיקום המיקום)
מופעלת בעקבות לחיצה על הנקודה 'המיקום שלי'.
ההגדרה הזו נקראת ב-thread של ממשק המשתמש ב-Android.
פרמטרים
מיקום |
המיקום הנוכחי של הנקודה 'המיקום שלי'.
|
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-08 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-08 (שעון UTC)."],[[["`GoogleMap.OnMyLocationClickListener` is an interface used to handle clicks on the \"My Location\" dot in Google Maps."],["It includes a single method, `onMyLocationClick(Location location)`, which is triggered when the user taps the \"My Location\" dot, providing the current location."],["This method is executed on the Android UI thread, ensuring any UI updates within it are handled safely."]]],["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"]]