launch

fun launch(offering: Offering? = null, fontProvider: ParcelizableFontProvider? = null, shouldDisplayDismissButton: Boolean = DEFAULT_DISPLAY_DISMISS_BUTTON)

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.


fun launch(offeringIdentifier: String, fontProvider: ParcelizableFontProvider? = null, shouldDisplayDismissButton: Boolean = DEFAULT_DISPLAY_DISMISS_BUTTON)

Do not use this method, use the method with the same name that takes an Offering instead. This method is used internally by the hybrid SDKs.

Launch the paywall activity.

Parameters

offeringIdentifier

The offering identifier of 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.