Callback

fun interface Callback<T>

Generic callback interface to use in places where a task's result will potentially be delivered asynchronously.

Functions

Link copied to clipboard
inline fun <T> Callback<TealiumResult<T>>.failure(throwable: Throwable)

Completes this Callback with a TealiumResult failure.

Link copied to clipboard
abstract fun onComplete(result: T)

This method is called when the task has been completed and a result is therefore available.

Link copied to clipboard
inline fun <T> Callback<TealiumResult<T>>.success(value: T)

Completes this Callback with a successful TealiumResult.