Package 

Class PaywallActivityLauncher

    • Method Detail

      • launch

        @JvmOverloads() final Unit launch(Offering offering, ParcelizableFontProvider fontProvider, Boolean shouldDisplayDismissButton)

        Launch the paywall activity.

        Parameters:
        offering - The offering to be shown in the paywall.
        fontProvider - The ParcelizableFontProvider to be used in the paywall.
        shouldDisplayDismissButton - Whether to display the dismiss button in the paywall.
      • launch

        @JvmOverloads() final Unit launch(Offering offering)

        Launch the paywall activity.

        Parameters:
        offering - The offering to be shown in the paywall.
      • launchIfNeeded

        @JvmOverloads() final Unit launchIfNeeded(String requiredEntitlementIdentifier, Offering offering, ParcelizableFontProvider fontProvider, Boolean shouldDisplayDismissButton, PaywallDisplayCallback paywallDisplayCallback)

        Launch the paywall activity if the current user does not have requiredEntitlementIdentifier active.

        Parameters:
        requiredEntitlementIdentifier - the paywall will be displayed only if the current user does not have this entitlement active.
        offering - The offering to be shown in the paywall.
        fontProvider - The ParcelizableFontProvider to be used in the paywall.
        shouldDisplayDismissButton - Whether to display the dismiss button in the paywall.
        paywallDisplayCallback - Callback that will be called with true if the paywall was displayed
      • launchIfNeeded

        @JvmOverloads() final Unit launchIfNeeded(String requiredEntitlementIdentifier, Offering offering, ParcelizableFontProvider fontProvider, Boolean shouldDisplayDismissButton)

        Launch the paywall activity if the current user does not have requiredEntitlementIdentifier active.

        Parameters:
        requiredEntitlementIdentifier - the paywall will be displayed only if the current user does not have this entitlement active.
        offering - The offering to be shown in the paywall.
        fontProvider - The ParcelizableFontProvider to be used in the paywall.
        shouldDisplayDismissButton - Whether to display the dismiss button in the paywall.
      • launchIfNeeded

        @JvmOverloads() final Unit launchIfNeeded(String requiredEntitlementIdentifier, Offering offering)

        Launch the paywall activity if the current user does not have requiredEntitlementIdentifier active.

        Parameters:
        requiredEntitlementIdentifier - the paywall will be displayed only if the current user does not have this entitlement active.
        offering - The offering to be shown in the paywall.
      • launchIfNeeded

        @JvmOverloads() final Unit launchIfNeeded(String requiredEntitlementIdentifier)

        Launch the paywall activity if the current user does not have requiredEntitlementIdentifier active.

        Parameters:
        requiredEntitlementIdentifier - the paywall will be displayed only if the current user does not have this entitlement active.
      • launchIfNeeded

        @JvmOverloads() final Unit launchIfNeeded(Offering offering, ParcelizableFontProvider fontProvider, Boolean shouldDisplayDismissButton, Function1<CustomerInfo, Boolean> shouldDisplayBlock)

        Launch the paywall activity based on whether the result of shouldDisplayBlock is true.

        Parameters:
        offering - The offering to be shown in the paywall.
        fontProvider - The ParcelizableFontProvider to be used in the paywall.
        shouldDisplayDismissButton - Whether to display the dismiss button in the paywall.
        shouldDisplayBlock - the paywall will be displayed only if this returns true.
      • launchIfNeeded

        @JvmOverloads() final Unit launchIfNeeded(Offering offering, Function1<CustomerInfo, Boolean> shouldDisplayBlock)

        Launch the paywall activity based on whether the result of shouldDisplayBlock is true.

        Parameters:
        offering - The offering to be shown in the paywall.
        shouldDisplayBlock - the paywall will be displayed only if this returns true.
      • launchIfNeeded

        @JvmOverloads() final Unit launchIfNeeded(Function1<CustomerInfo, Boolean> shouldDisplayBlock)

        Launch the paywall activity based on whether the result of shouldDisplayBlock is true.

        Parameters:
        shouldDisplayBlock - the paywall will be displayed only if this returns true.