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

awaitSnapshot

suspend fun GoogleMap.awaitSnapshot(bitmap: Bitmap? = null): Bitmap?

A suspending function that returns a bitmap snapshot of the current view of the map. Uses GoogleMap.snapshot.

Parameters

bitmap - an optional preallocated bitmap

Return
the snapshot