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

onSuccess

inline fun onSuccess(block: (value: T) -> Unit): TealiumResult<T>

Executes the given block when the TealiumResult was a success.

Return

this TealiumResult

Parameters

block

The block to execute when the result was a success


fun onSuccess(action: Callback<T>): TealiumResult<T>

Executes the given action when the TealiumResult was a success.

Return

this TealiumResult

Parameters

action

The callback to execute when the result was a success

Generated by Dokka
(c) Tealium 2026