cameraStates

fun cameraStates(frequency: MapUpdateFrequency = MapUpdateFrequency.ON_END): Flow<MapCameraState>

Flow of camera snapshots, skipping consecutive identical ones.

Return

the flow of camera states.

Parameters

frequency

MapUpdateFrequency.ON_END (the default) delivers a snapshot once the map settles; MapUpdateFrequency.CONTINUOUS also delivers while the map is animating or scrolling.