getMapAsync

fun getMapAsync(callback: OnMapReadyCallback)

Sets a callback that will be triggered when the map instance is ready to use. The callback will be executed on the main thread. Note: You must call this method from the main thread. Otherwise an exception will be thrown.

Parameters

callback

The listener which handles the result.