Interface MapObjectDragListener

com.yandex.mapkit.map

public interface MapObjectDragListener

This listener is notified when a map object is being dragged.

Note that the map object's "draggable" property needs to be set to True in order to activate dragging. A long tap on a map object activates dragging mode.

Methods

void onMapObjectDrag(@NonNull MapObject mapObject, @NonNull Point point)

Raised when the user is moving a finger and the map object follows it.

void onMapObjectDragEnd(@NonNull MapObject mapObject)

Raised when the user released the tap.

void onMapObjectDragStart(@NonNull MapObject mapObject)

Raised when dragging mode is active for the given map object.

Method Detail

onMapObjectDrag

public void onMapObjectDrag (@NonNull MapObject mapObject, @NonNull Point point)

Raised when the user is moving a finger and the map object follows it.

onMapObjectDragEnd

public void onMapObjectDragEnd (@NonNull MapObject mapObject)

Raised when the user released the tap.

onMapObjectDragStart

public void onMapObjectDragStart (@NonNull MapObject mapObject)

Raised when dragging mode is active for the given map object.