-
public final class PaywallOptions.Builder
-
-
Constructor Summary
Constructors Constructor Description PaywallOptions.Builder(Function0<Unit> dismissRequest)
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>setOffering(Offering offering)final <ERROR CLASS>setShouldDisplayDismissButton(Boolean shouldDisplayDismissButton)Sets whether to display a close button on the paywall screen. final <ERROR CLASS>setFontProvider(FontProvider fontProvider)Sets a font provider to provide the paywall with your custom fonts. final <ERROR CLASS>setListener(PaywallListener listener)final <ERROR CLASS>setPurchaseLogic(PurchaseLogic purchaseLogic)final PaywallOptionsbuild()-
-
Constructor Detail
-
PaywallOptions.Builder
PaywallOptions.Builder(Function0<Unit> dismissRequest)
-
-
Method Detail
-
setOffering
final <ERROR CLASS> setOffering(Offering offering)
-
setShouldDisplayDismissButton
final <ERROR CLASS> setShouldDisplayDismissButton(Boolean shouldDisplayDismissButton)
Sets whether to display a close button on the paywall screen. Only available when using Paywall and original template paywalls. Ignored when using OriginalTemplatePaywallFooter or using v2 Paywalls. Defaults to false.
-
setFontProvider
final <ERROR CLASS> setFontProvider(FontProvider fontProvider)
Sets a font provider to provide the paywall with your custom fonts. Only available for original template paywalls. Ignored for v2 Paywalls.
-
setListener
final <ERROR CLASS> setListener(PaywallListener listener)
-
setPurchaseLogic
final <ERROR CLASS> setPurchaseLogic(PurchaseLogic purchaseLogic)
-
build
final PaywallOptions build()
-
-
-
-