getMapAsync

@MainThread
abstract fun getMapAsync(callback: OnMapReadyCallback): 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.

Return

Cancellable object that can be used to remove the listener. This will have the same effect as invoking removeOnMapReadyCallback

Parameters

callback

The listener to handle the result.