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. On versions below Android 15, edge-to-edge is enabled only if this is set to true. On Android 15 (API 35), edge-to-edge is enabled by default, so this parameter has no effect unless the app has opted out via the manifest. On Android 16+ (API 36), edge-to-edge is enforced by the system and cannot be disabled.
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.