DataProviderListener

class DataProviderListener(val onSuccess: (data: ByteArray) -> Unit, val onFailure: (uri: Uri, message: String) -> Unit)

Data provider listener interface for map display.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
constructor(onSuccess: (data: ByteArray) -> Unit, onFailure: (uri: Uri, message: String) -> Unit)

Properties

Link copied to clipboard
val onFailure: (uri: Uri, message: String) -> Unit

Callback function which is called when the request failed. The callback should be called with the Uri of the request and a failure message

Link copied to clipboard
val onSuccess: (data: ByteArray) -> Unit

Callback function which is called if the request was sent and the data was successfully received.