getMap

abstract fun getMap(venue: Venue, offlineMode: Boolean = false, completionCallback: CompletionCallback<String>)

Retrieves a map for the specified venue asynchronously.

Parameters

venue

The venue for which to retrieve the map.

offlineMode

Indicates whether to use offline mode for map retrieval. Default is false.

completionCallback

The callback function to be invoked with the map data.


abstract suspend fun getMap(venue: Venue, offlineMode: Boolean = false, license: String? = null): String

Retrieves a map for the specified venue asynchronously.

Return

The map data as a string.

Parameters

venue

The venue for which to retrieve the map.

offlineMode

Indicates whether to use offline mode for map retrieval. Default is false.

license

The license to be used for map retrieval. Default is null.


abstract fun getMap(venue: Venue, offlineMode: Boolean = false, license: String? = null, onComplete: (String) -> Unit, onProgress: (Int, Int, Int) -> Unit, onError: (Throwable) -> Unit)

Retrieves a map for the specified venue asynchronously with progress and error callbacks.

Parameters

venue

The venue for which to retrieve the map.

offlineMode

Indicates whether to use offline mode for map retrieval. Default is false.

license

The license to be used for map retrieval. Default is null.

onComplete

The callback function to be invoked when the map retrieval is complete.

onProgress

The callback function to be invoked to report progress during map retrieval.

onError

The callback function to be invoked if an error occurs during map retrieval.