Interface InertiaMoveListener

com.yandex.mapkit.map

public interface InertiaMoveListener

Listener for user interactions with the map.

Methods

void onCancel(@NonNull Map map, @NonNull CameraPosition cameraPosition)

Called when inertia move is cancelled.

void onFinish(@NonNull Map map, @NonNull CameraPosition cameraPosition)

Called when inertia move is finished.

void onStart(@NonNull Map map, @NonNull CameraPosition finishCameraPosition)

Called when an inertia move is started.

Method Detail

onCancel

public void onCancel (@NonNull Map map, @NonNull CameraPosition cameraPosition)

Called when inertia move is cancelled.

Parameters:
cameraPosition

Current camera position.

onFinish

public void onFinish (@NonNull Map map, @NonNull CameraPosition cameraPosition)

Called when inertia move is finished.

Parameters:
cameraPosition

Current camera position.

onStart

public void onStart (@NonNull Map map, @NonNull CameraPosition finishCameraPosition)

Called when an inertia move is started.

Parameters:
finishCameraPosition

Approximate position of camera when the inertia move finishes.