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


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