fold
inline fun <T : Parcelable, R> ProcessOutActivityResult<T>.fold(onSuccess: (value: T) -> R, onFailure: (failure: ProcessOutActivityResult.Failure) -> R): R
Returns the result of onSuccess for the encapsulated value if this instance represents Success or the result of onFailure for the encapsulated failure if it is Failure.
inline fun <T : Any, R> ProcessOutResult<T>.fold(onSuccess: (value: T) -> R, onFailure: (failure: ProcessOutResult.Failure) -> R): R
Returns the result of onSuccess for the encapsulated value if this instance represents Success or the result of onFailure for the encapsulated failure if it is Failure.