AppPurchase
Types
Link copied to clipboard
enum PurchaseType
Enum representing the type of purchase for ad-disabling purposes.
Link copied to clipboard
Subscription replacement modes for upgrade/downgrade.
Properties
Functions
Link copied to clipboard
open fun changeSubscription(activity: Activity, currentSubsId: String, newSubsId: String, replacementMode: AppPurchase.SubscriptionReplacementMode): String
Upgrades or downgrades from a specific subscription.
Link copied to clipboard
Link copied to clipboard
Consumes a purchased product, allowing it to be purchased again.
Link copied to clipboard
Downgrades a subscription to a lower tier.
Link copied to clipboard
Gets the type of purchase that is disabling ads.
Link copied to clipboard
Gets all active subscriptions with their states.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets the category of a purchased product.
Link copied to clipboard
Gets the PurchaseItem configuration for a product ID.
Link copied to clipboard
Gets the subscription result for a specific product.
Link copied to clipboard
Gets the subscription state for a specific subscription.
Link copied to clipboard
Link copied to clipboard
Checks if user has a "Lifetime Premium" purchase specifically.
Link copied to clipboard
Checks if user has a lifetime premium purchase.
Checks if a specific product has been purchased and is currently owned.
Link copied to clipboard
Checks if user has a "Remove Ads" purchase specifically.
Link copied to clipboard
Checks if any subscription is cancelled but still has access.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Checks if a specific product is currently owned (purchased and not consumed).
Link copied to clipboard
Link copied to clipboard
Checks if user has an active subscription (including cancelled but not expired).
Checks if user has a specific active subscription.
Link copied to clipboard
Link copied to clipboard
Refreshes and retrieves all current purchases from Google Play.
Refreshes and retrieves current purchases for a specific product type.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets a listener to receive purchase history events.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Checks if ads should be disabled based on any purchase type.
Link copied to clipboard
Link copied to clipboard
open fun updateSubscription(activity: Activity, newSubsId: String, oldPurchaseToken: String, replacementMode: AppPurchase.SubscriptionReplacementMode): String
Upgrades or downgrades a subscription.
Link copied to clipboard
Upgrades a subscription to a higher tier.
Link copied to clipboard
Link copied to clipboard
Checks if all subscriptions will auto-renew.