purchases library

Classes

Discount
EntitlementInfo
The EntitlementInfo object gives you access to all of the information about the status of a user entitlement.
EntitlementInfos
This class contains all the entitlements associated to the user.
IntroductoryPrice
Contains all the introductory information associated with a Product
IntroEligibility
Holds the introductory price status
LogInResult
Class used to hold the result of the logIn method
Offering
An offering is a collection of Packages (Package) available for the user to purchase. For more info see https://docs.revenuecat.com/docs/entitlements
Offerings
This class contains all the offerings configured in RevenueCat dashboard. For more info see https://docs.revenuecat.com/docs/entitlements
Package
Contains information about the product available for the user to purchase. For more info see https://docs.revenuecat.com/docs/entitlements
PaymentDiscount
The signed discount applied to a payment
Product
Contains all the product details associated with a Store product id
PromotedPurchaseResult
Class used to hold the result of the startPromotedPurchase method
PurchaserInfo
Class containing all information regarding the purchaser
Purchases
PurchasesErrorHelper
Helper to convert from PlatformExceptions to PurchasesErrorCodes
UpgradeInfo
This class holds the information used when upgrading from another sku. To be used with purchaseProduct and purchasePackage.

Enums

BillingFeature
Billing Feature types
IntroEligibilityStatus
Possible IntroEligibility status. Use checkTrialOrIntroductoryPriceEligibility to determine the eligibility
OwnershipType
Enum of ownership types
PackageType
Enumeration of all possible Package types.
PeriodType
Enum of supported period types for an entitlement.
PeriodUnit
ProrationMode
Replace SKU's ProrationMode.
PurchasesAttributionNetwork
Supported Attribution networks.
PurchasesErrorCode
Different error codes returned by the Purchases functions.
PurchaseType
Supported SKU types.
Store
Enum of supported stores

Typedefs

PurchaserInfoUpdateListener = void Function(PurchaserInfo purchaserInfo)
Used to handle async updates from Purchases. Should be implemented to receive updates when the PurchaserInfo changes.
ReadyForPromotedProductPurchaseListener = void Function(String productIdentifier, Future<PromotedPurchaseResult> startPurchase())
iOS Only Listener called when a user initiates a promoted in-app purchase from the App Store. If your app is able to handle a purchase at the current time, run the startPurchase block in this method. If the app is not in a state to make a purchase: cache the startPurchase block, then call the startPurchase block when the app is ready to make the promoted purchase.