purchases_flutter library

Classes

AmazonConfiguration
A PurchasesConfiguration convenience object that sets PurchasesConfiguration.store to Store.amazon
CustomerInfo
Class containing all information regarding the customer
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.
GoogleProductChangeInfo
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 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
Period
Contains all the details associated with a Period
PresentedOfferingContext
Contains all the details associated with a PresentedOfferingContext
PresentedOfferingTargetingContext
Contains all the details associated with a PresentedOfferingContext
Price
Contains all the details associated with a Price
PricingPhase
Contains all the details associated with a PricingPhase
PromotedPurchaseResult
Class used to hold the result of the startPromotedPurchase method
PromotionalOffer
The signed discount applied to a payment
Purchases
Entry point for Purchases.
PurchasesConfiguration
Used when calling configure to configure the RevenueCat plugin
PurchasesError
PurchasesErrorCodeConverter
PurchasesErrorHelper
Helper to convert from PlatformExceptions to PurchasesErrorCodes
StoreProduct
Contains all the product details associated with a StoreProduct
StoreProductDiscount
StoreTransaction
Represents a purchase transaction
SubscriptionOption
Contains all details associated with a SubscriptionOption Used only for Google
UpgradeInfo
This class holds the information used when upgrading from another sku. To be used with purchaseProduct and purchasePackage.

Enums

BillingFeature
Billing Feature types
EntitlementVerificationMode
Enum of entitlement verification modes
GoogleProrationMode
GoogleProductChangeInfo's ProrationMode.
InAppMessageType
Enum for in-app message types. This can be used if you disable automatic in-app message from showing automatically. Then, you can pass what type of messages you want to show in the showInAppMessages method in Purchases.
IntroEligibilityStatus
Possible IntroEligibility status. Use checkTrialOrIntroductoryPriceEligibility to determine the eligibility
LogLevel
Log levels.
OfferPaymentMode
OwnershipType
Enum of ownership types
PackageType
Enumeration of all possible Package types.
PeriodType
Enum of supported period types for an entitlement.
PeriodUnit
ProductCategory
Supported StoreProduct types.
ProrationMode
Replace SKU's ProrationMode.
PurchasesErrorCode
Different error codes returned by the Purchases functions.
PurchaseType
Supported SKU types.
RecurrenceMode
RefundRequestStatus
Status codes for refund requests.
Store
Enum of supported stores
VerificationResult
Enum of entitlement verification modes

Typedefs

CustomerInfoUpdateListener = void Function(CustomerInfo customerInfo)
Used to handle async updates from Purchases. Should be implemented to receive updates when the CustomerInfo changes.
LogHandler = void Function(LogLevel logLevel, String message)
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.

Exceptions / Errors

UnsupportedPlatformException