Called repeatedly while a marker is being dragged. The marker's location can be accessed via
Marker.getPosition().
Parameters
marker
The marker being dragged.
public
abstract
void
onMarkerDragEnd(Marker marker)
Called when a marker has finished being dragged. The marker's location can be accessed via
Marker.getPosition().
Parameters
marker
The marker that was dragged.
public
abstract
void
onMarkerDragStart(Marker marker)
Called when a marker starts being dragged. The marker's location can be accessed via Marker.getPosition(); this position may be different to the position prior to the start of
the drag because the marker is popped up above the touch point.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-07 UTC."],[[["`GoogleMap.OnMarkerDragListener` is a callback interface for handling marker drag events in Android Google Maps."],["It provides three methods: `onMarkerDragStart`, `onMarkerDrag`, and `onMarkerDragEnd`, which are triggered when a marker drag starts, continues, and ends respectively."],["These methods receive a `Marker` object, allowing developers to access and manipulate the marker's properties like position during the drag event."],["All listener methods are executed on the Android UI thread, ensuring interactions with UI elements are safe."]]],[]]