ProcessOutActivityResult

Provides Success or Failure as a result of operation received from Activity.

Inheritors

Types

Link copied to clipboard
data class Failure(val code: POFailure.Code, val message: String? = null) : ProcessOutActivityResult<Nothing>

Provides detailed information about an error that occurred.

Link copied to clipboard
data class Success<out T : Parcelable>(val value: T) : ProcessOutActivityResult<T>

Provides successful result with a value.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
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.

Link copied to clipboard

Returns the encapsulated value if this instance represents Success or null if it is Failure.

Link copied to clipboard

Performs the given action on the encapsulated failure if this instance represents Failure. Returns the original ProcessOutActivityResult unchanged.

Link copied to clipboard

Performs the given action on the encapsulated value if this instance represents Success. Returns the original ProcessOutActivityResult unchanged.

Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)