Builder
Builder for creating PaywallActivityLaunchIfNeededOptions.
You must set either setRequiredEntitlementIdentifier or setShouldDisplayBlock before calling build. These are mutually exclusive - setting one will clear the other.
Functions
Builds the PaywallActivityLaunchIfNeededOptions instance.
Sets custom variables to be used in paywall text. These values will replace {{ custom.key }} or {{ $custom.key }} placeholders in the paywall configuration.
Sets whether to display the paywall in edge-to-edge mode. Default is true for Android 15+, false otherwise.
Sets the font provider to be used in the paywall. Only available for original template paywalls. Ignored for V2 Paywalls.
Sets a listener to receive paywall events such as purchase completion, restoration, and errors.
Sets the offering to be shown in the paywall. If not set, the current offering will be shown.
Internal method for hybrid SDKs to set offering by identifier and context. This is mutually exclusive with setOffering.
Sets a callback that will be called with the result of whether the paywall was displayed.
Sets custom purchase logic to handle purchases directly by the application rather than by RevenueCat.
Sets the required entitlement identifier. The paywall will only be displayed if the current user does not have this entitlement active.
Sets a block that determines whether the paywall should be displayed. The paywall will be displayed only if this returns true.
Sets whether to display the dismiss button in the paywall. Only available for original template paywalls. Ignored for V2 Paywalls. Default is true.