animateCamera

fun GoogleMap.animateCamera(cameraUpdate: CameraUpdate, durationMs: Int? = null): Single<Boolean>

A Single that emits when a camera animation completes

Return

a Single emitting true if the animation completes, and false if the animation is canceled

Parameters

cameraUpdate

the CameraUpdate to apply on the map

durationMs

(optional) the duration in milliseconds of the animation