DataCallback

interface DataCallback<T>

Callback that must be called when data has been loaded and is available, or when the load fails.

Parameters

<T>

The type of data that will be loaded.

Functions

Link copied to clipboard
abstract fun onDataReady(data: T)
Called with the loaded data if the load succeeded, or with null if the load failed.
Link copied to clipboard
abstract fun onLoadFailed(e: Exception)
Called when the load fails.