awaitAnimateCamera

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

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.