purchases / com.revenuecat.purchases / PurchaserInfo

PurchaserInfo

class PurchaserInfo : Parcelable

Class containing all information regarding the purchaser

Types

CREATOR

companion object CREATOR : Creator<PurchaserInfo>

Constructors

<init>

PurchaserInfo(parcel: Parcel)

Properties

activeEntitlements

val activeEntitlements: Set<String>

The identifiers of all the active entitlements

activeSubscriptions

val activeSubscriptions: Set<String>

allExpirationDatesByEntitlement

val allExpirationDatesByEntitlement: Map<String, Date?>

Map of entitlement ids to expiration dates

allExpirationDatesByProduct

val allExpirationDatesByProduct: Map<String, Date?>

Map of skus to expiration dates

allPurchaseDatesByEntitlement

val allPurchaseDatesByEntitlement: Map<String, Date?>

Map of entitlement ids to purchase dates

allPurchaseDatesByProduct

val allPurchaseDatesByProduct: Map<String, Date?>

Map of skus to purchase dates

allPurchasedSkus

val allPurchasedSkus: Set<String>

latestExpirationDate

val latestExpirationDate: Date?

purchasedNonSubscriptionSkus

val purchasedNonSubscriptionSkus: Set<String>

Set of non-subscription, non-consumed skus

requestDate

val requestDate: Date?

Date when this info was requested

Functions

describeContents

fun describeContents(): Int

equals

fun equals(other: Any?): Boolean

getExpirationDateForEntitlement

fun getExpirationDateForEntitlement(entitlement: String): Date?

Get the expiration date for a given entitlement

getExpirationDateForSku

fun getExpirationDateForSku(sku: String): Date?

Get the expiration date for a given sku

getPurchaseDateForEntitlement

fun getPurchaseDateForEntitlement(entitlement: String): Date?

Get the purchase date for a given entitlement

getPurchaseDateForSku

fun getPurchaseDateForSku(sku: String): Date?

Get the purchase date for given sku

hashCode

fun hashCode(): Int

toString

fun toString(): String

writeToParcel

fun writeToParcel(parcel: Parcel, flags: Int): Unit

Companion Object Functions

createFromParcel

fun createFromParcel(parcel: Parcel): PurchaserInfo

newArray

fun newArray(size: Int): Array<PurchaserInfo?>