core / com.schibsted.account.engine.integration / ResultCallback

ResultCallback

interface ResultCallback<in T>

Functions

onError

abstract fun onError(error: ClientError): Unit

onSuccess

abstract fun onSuccess(result: T): Unit

Companion Object Functions

fromLambda

fun <T> fromLambda(onErrorFun: (ClientError) -> Unit, onSuccessFun: (T) -> Unit): ResultCallback<T>