snapshot

open override fun snapshot(): Bitmap?

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(listener: MapView.OnSnapshotReady)

Perform snapshot of current MapView state with notifying listener about it. This method is asynchronous so it does not block calling thread. Consecutive requests will return snapshots in the order they were added.

OnSnapshotReady.onSnapshotReady is called from non UI thread.

Parameters

listener

instance of OnSnapshotReady callback