HERE Android SDK Developer's Guide

OnDragListener

The interface OnDragListener is a member of com.here.android.mpa.mapping.MapMarker.

Interface Summary

public static abstract interface MapMarker.OnDragListener

Callback interface for drag events on MapMarker objects.

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in OnDragListener
Methods

public abstract void onMarkerDrag (MapMarker marker)

Called repeatedly while a marker is being dragged.

public abstract void onMarkerDragEnd (MapMarker marker)

Called when a marker has finished being dragged.

public abstract void onMarkerDragStart (MapMarker marker)

Called when a marker starts being dragged.

Interface Details

Callback interface for drag events on MapMarker objects.

Method Details

public abstract void onMarkerDrag (MapMarker marker)

Called repeatedly while a marker is being dragged. The MapMarker 's location can be accessed through getCoordinate().

Parameters:

  • marker

    The MapMarker that is being dragged.

public abstract void onMarkerDragEnd (MapMarker marker)

Called when a marker has finished being dragged. The MapMarker 's location can be accessed through getCoordinate().

Parameters:

  • marker

    The MapMarker that is being dragged.

public abstract void onMarkerDragStart (MapMarker marker)

Called when a marker starts being dragged. The MapMarker 's location can be accessed via getCoordinate(). 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 MapMarker that is being dragged.