getMapAsync

open override fun getMapAsync(callback: MapReadyCallback): Cancellable

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.

Return

Cancellable object that can remove the listener.

Parameters

callback

The listener that handles the result.