Package-level declarations

Types

Link copied to clipboard
interface PaywallListener

Provide an implementation of this interface to PaywallOptions to listen for Paywall events. Every function has a default no-op implementation.

Link copied to clipboard

Options for the Paywall.

Link copied to clipboard

Interface for handling in-app purchases and restorations directly by the application rather than by RevenueCat. These suspend methods are called by a RevenueCat Paywall in order to execute your app's custom purchase/restore code. These functions are only called when purchasesAreCompletedBy is set to MY_APP.

Link copied to clipboard

Parameters provided to PaywallPurchaseLogic when a paywall initiates a purchase.

Link copied to clipboard
abstract class PurchaseLogicResult

Represents the result of a purchase or restore attempt made by custom app-based code (not RevenueCat).

Functions

Link copied to clipboard
actual fun CustomerCenter(modifier: Modifier, onDismiss: () -> Unit)
expect fun CustomerCenter(modifier: Modifier = Modifier, onDismiss: () -> Unit)

A full-screen CustomerCenter.

actual fun CustomerCenter(modifier: Modifier, onDismiss: () -> Unit)
Link copied to clipboard

A Paywall footer.

expect fun OriginalTemplatePaywallFooter(options: PaywallOptions, mainContent: @Composable (PaddingValues) -> Unit? = null)

Composable offering a minified screen Paywall UI configured from the RevenueCat dashboard. You can pass in your own Composables to be displayed in the main content area. Only compatible with original Paywalls. If using V2 Paywalls, this will display a fallback paywall instead.

Link copied to clipboard
actual fun Paywall(options: PaywallOptions)
expect fun Paywall(options: PaywallOptions)

A full-screen Paywall.

Link copied to clipboard
fun PaywallFooter(options: PaywallOptions, mainContent: @Composable (PaddingValues) -> Unit? = null)

Composable offering a minified screen Paywall UI configured from the RevenueCat dashboard. You can pass in your own Composables to be displayed in the main content area. Only compatible with original Paywalls. If using V2 Paywalls, this will display a fallback paywall instead.

Link copied to clipboard
fun PaywallOptions(dismissRequest: () -> Unit, builder: PaywallOptions.Builder.() -> Unit = { }): PaywallOptions

Options for the Paywall.