PaywallResult

sealed class PaywallResult : Parcelable

Result of the paywall activity.

Inheritors

Types

Link copied to clipboard

The user cancelled the paywall without purchasing.

Link copied to clipboard
data class Error(val error: PurchasesError) : PaywallResult, Parcelable

The user tried to purchase a product or restore purchases but an error occurred. If they tried multiple times, the error corresponds to the last attempt.

Link copied to clipboard
data class Purchased(val customerInfo: CustomerInfo) : PaywallResult, Parcelable

The user purchased a product and the paywall was closed.

Link copied to clipboard
data class Restored(val customerInfo: CustomerInfo) : PaywallResult, Parcelable

The last action the user performed in the paywall activity was a restore.

Functions

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