Interface CameraListener

com.yandex.mapkit.map

public interface CameraListener

Listens for updates to the camera position.

Methods

void onCameraPositionChanged(@NonNull Map map, @NonNull CameraPosition cameraPosition, @NonNull CameraUpdateSource cameraUpdateSource, boolean finished)

Triggered when the camera position changed.

Method Detail

onCameraPositionChanged

public void onCameraPositionChanged (@NonNull Map map, @NonNull CameraPosition cameraPosition, @NonNull CameraUpdateSource cameraUpdateSource, boolean finished)

Triggered when the camera position changed.

Parameters:
map

New map area.

cameraPosition

Current camera position.

cameraUpdateSource

Previous camera position.

finished

True if the camera finished moving, false otherwise.