AI-generated Key Takeaways
-
The GoogleMap.OnMarkerDragListener is a callback interface for drag events on markers.
-
Listeners for marker drag events are invoked on the Android UI thread.
-
The interface includes methods called when a marker starts being dragged, is being dragged repeatedly, and finishes being dragged.
-
You can access the marker's location during dragging using Marker.getPosition().
Callback interface for drag events on markers.
Listeners will be invoked on the Android UI thread.
Public Method Summary
| abstract void | |
| abstract void | |
| abstract void |
Public Methods
public abstract void onMarkerDrag (Marker marker)
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.
Parameters
| marker | The marker being dragged. |
|---|