-
public final class PaywallDialogOptions.Builder
-
-
Constructor Summary
Constructors Constructor Description PaywallDialogOptions.Builder()
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>setShouldDisplayBlock(Function1<CustomerInfo, Boolean> shouldDisplayBlock)Allows to configure whether to display the paywall dialog depending on operations on the CustomerInfo final <ERROR CLASS>setRequiredEntitlementIdentifier(String requiredEntitlementIdentifier)Allows to configure whether to display the paywall dialog depending on the presence of a specific entitlement final <ERROR CLASS>setDismissRequest(Function0<Unit> dismissRequest)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)final <ERROR CLASS>setListener(PaywallListener listener)final <ERROR CLASS>setCustomPurchaseLogic(PurchaseLogic purchaseLogic)final PaywallDialogOptionsbuild()-
-
Method Detail
-
setShouldDisplayBlock
final <ERROR CLASS> setShouldDisplayBlock(Function1<CustomerInfo, Boolean> shouldDisplayBlock)
Allows to configure whether to display the paywall dialog depending on operations on the CustomerInfo
-
setRequiredEntitlementIdentifier
final <ERROR CLASS> setRequiredEntitlementIdentifier(String requiredEntitlementIdentifier)
Allows to configure whether to display the paywall dialog depending on the presence of a specific entitlement
-
setDismissRequest
final <ERROR CLASS> setDismissRequest(Function0<Unit> dismissRequest)
-
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. Defaults to true.
-
setFontProvider
final <ERROR CLASS> setFontProvider(FontProvider fontProvider)
-
setListener
final <ERROR CLASS> setListener(PaywallListener listener)
-
setCustomPurchaseLogic
final <ERROR CLASS> setCustomPurchaseLogic(PurchaseLogic purchaseLogic)
-
build
final PaywallDialogOptions build()
-
-
-
-