GoogleMap.OnMarkerDragListener
ממשק התקשרות חזרה לאירועי גרירה בסמנים.
מאזינים יופעלו בשרשור של ממשק המשתמש של Android.
סיכום אמצעי תשלום ציבורי
מופשט
וריק
|
|
מופשט
וריק
|
|
מופשט
וריק
|
|
שיטות ציבוריות
מופשט ציבורי
ריק
onMarkerDrag
(סמן סמן)
מתבצעת קריאה חוזרת ונשנית בזמן שגוררים סמן. ניתן לגשת למיקום הסמן דרך getPosition()
.
מופשט
ציבורי
ריק
onMarkerDragEnd
(סמן סמן)
היא נקראת לאחר סיום הגרירה של סמן. ניתן לגשת למיקום הסמן דרך getPosition()
.
ציבורי
מופשט
ריק
onMarkerDragStart
(סמן סמן)
היא מופעלת כשמתבצעת גרירה של סמן. ניתן לגשת למיקום הסמן דרך getPosition()
. מיקום זה עשוי להיות שונה מהמיקום שלפני התחלת הגרירה, מפני שהסמן מובלט מעל לנקודת המגע.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-08 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-08 (שעון UTC)."],[[["`GoogleMap.OnMarkerDragListener` is a callback interface used to handle marker drag events on Google Maps in Android."],["It provides three methods: `onMarkerDragStart`, `onMarkerDrag`, and `onMarkerDragEnd`, which are triggered when a marker drag starts, continues, and ends, respectively."],["All listener methods are executed on the Android UI thread, ensuring they can interact with UI elements directly."],["The `Marker` object provided to the listener methods allows access to the marker's current position during the drag process."]]],["`GoogleMap.OnMarkerDragListener` is a callback interface for marker drag events on Android. It contains three key methods: `onMarkerDragStart`, triggered when a marker drag begins; `onMarkerDrag`, called continuously during the drag; and `onMarkerDragEnd`, invoked when the drag finishes. Each method receives the dragged `Marker` object, and its position can be obtained with `getPosition()`. All events are executed on the UI thread.\n"]]