snapshot

Perform snapshot of current MapView state. This method is synchronous so it blocks calling thread until Bitmap is ready.

Return

Bitmap representing current map state or null if map is not ready yet.

open override fun snapshot(): Bitmap?

Perform snapshot of current MapView state with notifying listener about it. This method is asynchronous so it does not block calling thread. OnSnapshotReady.onSnapshotReady is called from non UI thread.

Parameters

listener

instance of OnSnapshotReady callback

open override fun snapshot(listener: MapView.OnSnapshotReady)