maps-ktx / com.google.maps.android.ktx / com.google.android.gms.maps.GoogleMap / awaitAnimateCamera

awaitAnimateCamera

suspend fun GoogleMap.awaitAnimateCamera(cameraUpdate: CameraUpdate, durationMs: Int = 3000): Unit

A suspending function that awaits the completion of the cameraUpdate animation.

Parameters

cameraUpdate - the CameraUpdate to apply on the map

durationMs - the duration in milliseconds of the animation. Defaults to 3 seconds.