Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.misc/Callback

Callback

fun interface Callback<T>

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

Functions

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

Completes this Callback with a TealiumResult failure.

onComplete
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.

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

Completes this Callback with a successful TealiumResult.

Generated by Dokka
(c) Tealium 2026