RevenueCatUI class

Constructors

RevenueCatUI()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

presentCustomerCenter({CustomerCenterRestoreStarted? onRestoreStarted, CustomerCenterRestoreCompleted? onRestoreCompleted, CustomerCenterRestoreFailed? onRestoreFailed, CustomerCenterManageSubscriptions? onShowingManageSubscriptions, CustomerCenterRefundRequestStarted? onRefundRequestStarted, CustomerCenterRefundRequestCompleted? onRefundRequestCompleted, CustomerCenterFeedbackSurveyCompleted? onFeedbackSurveyCompleted, CustomerCenterManagementOptionSelected? onManagementOptionSelected, CustomerCenterCustomActionSelected? onCustomActionSelected, CustomerCenterPromotionalOfferSucceeded? onPromotionalOfferSucceeded}) → Future<void>
Presents the customer center modally using the native SDKs.
presentPaywall({Offering? offering, bool displayCloseButton = false, Map<String, CustomVariableValue>? customVariables, PaywallPresentationConfiguration? presentationConfiguration, dynamic onPurchaseStarted(Package rcPackage)?, dynamic onPurchaseCompleted(CustomerInfo customerInfo, StoreTransaction storeTransaction)?, dynamic onPurchaseCancelled()?, dynamic onPurchaseError(PurchasesError)?, dynamic onRestoreCompleted(CustomerInfo customerInfo)?, dynamic onRestoreError(PurchasesError)?, dynamic onWebCheckoutOpened()?, dynamic onUrlOpened(String url)?, dynamic onInteraction(Map<String, dynamic> event)?}) → Future<PaywallResult>
Presents the paywall as an activity on android or a modal in iOS. Returns a PaywallResult indicating the result of the paywall presentation. @param offering If set, will present the paywall associated to the given Offering. @param displayCloseButton Optionally present the paywall with a close button. Only available for original template paywalls. Ignored for V2 Paywalls. @param customVariables A map of custom variable names to their values. These values can be used for text substitution in paywalls using the {{ custom.variable_name }} syntax. @param presentationConfiguration Optional configuration for how the paywall is presented on each platform. @param onPurchaseStarted Called when a purchase is started. @param onPurchaseCompleted Called when a purchase is completed. @param onPurchaseCancelled Called when a purchase is cancelled. @param onPurchaseError Called when a purchase fails. @param onRestoreCompleted Called when a restore completes, even if no entitlements were granted. @param onRestoreError Called when a restore fails. @param onWebCheckoutOpened Called when the user leaves the app for web checkout. @param onUrlOpened Called when the paywall opens a URL. Not called for web checkout URLs. @param onInteraction Called when the user interacts with a paywall control (tab, package, purchase button, ...), with the paywall_component_interacted event as a map of snake_case keys; keys that do not apply are absent.
presentPaywallIfNeeded(String requiredEntitlementIdentifier, {Offering? offering, bool displayCloseButton = false, Map<String, CustomVariableValue>? customVariables, PaywallPresentationConfiguration? presentationConfiguration, dynamic onPurchaseStarted(Package rcPackage)?, dynamic onPurchaseCompleted(CustomerInfo customerInfo, StoreTransaction storeTransaction)?, dynamic onPurchaseCancelled()?, dynamic onPurchaseError(PurchasesError)?, dynamic onRestoreCompleted(CustomerInfo customerInfo)?, dynamic onRestoreError(PurchasesError)?, dynamic onWebCheckoutOpened()?, dynamic onUrlOpened(String url)?, dynamic onInteraction(Map<String, dynamic> event)?}) → Future<PaywallResult>
Presents the paywall as an activity on android or a modal in iOS as long as the user does not have the given entitlement identifier active. Returns a PaywallResult indicating the result of the paywall presentation.