launch
fun launch(offering: Offering? = null, fontProvider: ParcelizableFontProvider? = null, shouldDisplayDismissButton: Boolean = DEFAULT_DISPLAY_DISMISS_BUTTON, edgeToEdge: Boolean = defaultEdgeToEdge)
Launch the paywall activity.
Parameters
offering
The offering to be shown in the paywall. If null, the current offering will be shown.
fontProvider
The ParcelizableFontProvider to be used in the paywall. If null, the default fonts will be used. Only available for original template paywalls. Ignored for v2 Paywalls.
shouldDisplayDismissButton
Whether to display the dismiss button in the paywall. Only available for original template paywalls. Ignored for v2 Paywalls.
edgeToEdge
Whether to display the paywall in edge-to-edge mode. Default is true for Android 15+, false otherwise.
fun launch(offeringIdentifier: String, presentedOfferingContext: PresentedOfferingContext, fontProvider: ParcelizableFontProvider? = null, shouldDisplayDismissButton: Boolean = DEFAULT_DISPLAY_DISMISS_BUTTON, edgeToEdge: Boolean = defaultEdgeToEdge)