MapLoadedData

data class MapLoadedData<out T>(val result: MapInstaller.LoadResult, val value: T? = null)

Wrapper for the data and result of the operation.

Constructors

Link copied to clipboard
fun <out T> MapLoadedData(result: MapInstaller.LoadResult, value: T? = null)

Functions

Link copied to clipboard
fun getOrThrow(): T

Returns the loaded data if it wasn't null, otherwise throws NullPointerException.

Properties

Link copied to clipboard
val isFailure: Boolean

Whether the operation failed.

Link copied to clipboard
val isSuccess: Boolean

Whether the operation was successful.

Link copied to clipboard
val result: MapInstaller.LoadResult

result of the operation

Link copied to clipboard
val value: T? = null

loaded data of the operation is it was successful, otherwise null