maps-v3-ktx / com.google.maps.android.ktx / com.google.android.libraries.maps.MapFragment / awaitMap

awaitMap

suspend fun MapFragment.awaitMap(): GoogleMap

A suspending function that provides an instance of a GoogleMap from this MapFragment. This is an alternative to MapFragment.getMapAsync by using coroutines to obtain a GoogleMap.

Return
the GoogleMap instance