Package-level declarations

Types

Link copied to clipboard
sealed class PurchaseState

A sealed class representing the different states of a purchase operation.

Link copied to clipboard
sealed class RestoreState

Represents the current state of an asynchronous purchase restoration process.

Functions

Link copied to clipboard
fun SlideToPurchases(packageToPurchase: Package, promotionalOffer: PromotionalOffer, modifier: Modifier = Modifier, colors: SlideToUnlockColors = DefaultSlideToUnlockColors(), hintTexts: HintTexts = HintTexts.defaultHintTexts(), onSlideCompleted: () -> Unit = {}, onPurchaseStateChanged: (PurchaseState) -> Unit = {})

A composable that provides a "slide to unlock" UI to initiate a purchase for a Package with an applied promotional offer. This is an App Store-only function.

fun SlideToPurchases(packageToPurchase: Package, winBackOffer: WinBackOffer, modifier: Modifier = Modifier, colors: SlideToUnlockColors = DefaultSlideToUnlockColors(), hintTexts: HintTexts = HintTexts.defaultHintTexts(), onSlideCompleted: () -> Unit = {}, onPurchaseStateChanged: (PurchaseState) -> Unit = {})

A composable that provides a "slide to unlock" UI to initiate a purchase for a Package with a given win-back offer. This is an iOS-only function and requires iOS 18.0+.

fun SlideToPurchases(storeProduct: StoreProduct, promotionalOffer: PromotionalOffer, modifier: Modifier = Modifier, colors: SlideToUnlockColors = DefaultSlideToUnlockColors(), hintTexts: HintTexts = HintTexts.defaultHintTexts(), onSlideCompleted: () -> Unit = {}, onPurchaseStateChanged: (PurchaseState) -> Unit = {})

A composable that provides a "slide to unlock" UI to initiate a purchase for a StoreProduct with an applied promotional offer. This is an App Store-only function.

fun SlideToPurchases(storeProduct: StoreProduct, winBackOffer: WinBackOffer, modifier: Modifier = Modifier, colors: SlideToUnlockColors = DefaultSlideToUnlockColors(), hintTexts: HintTexts = HintTexts.defaultHintTexts(), onSlideCompleted: () -> Unit = {}, onPurchaseStateChanged: (PurchaseState) -> Unit = {})

A composable that provides a "slide to unlock" UI to initiate a purchase for a StoreProduct with a given win-back offer. This is an iOS-only function and requires iOS 18.0+.

fun SlideToPurchases(packageToPurchase: Package, modifier: Modifier = Modifier, colors: SlideToUnlockColors = DefaultSlideToUnlockColors(), hintTexts: HintTexts = HintTexts.defaultHintTexts(), onSlideCompleted: () -> Unit = {}, onPurchaseStateChanged: (PurchaseState) -> Unit = {}, isPersonalizedPrice: Boolean? = null, oldProductId: String? = null, replacementMode: GoogleReplacementMode = GoogleReplacementMode.WITHOUT_PRORATION)

A composable that provides a "slide to unlock" UI to initiate a purchase for a Package. When the user slides the component to the end, it triggers the RevenueCat purchase flow.

fun SlideToPurchases(storeProduct: StoreProduct, modifier: Modifier = Modifier, colors: SlideToUnlockColors = DefaultSlideToUnlockColors(), hintTexts: HintTexts = HintTexts.defaultHintTexts().copy(defaultText = "Slide to purchase"), onSlideCompleted: () -> Unit = {}, onPurchaseStateChanged: (PurchaseState) -> Unit = {}, isPersonalizedPrice: Boolean? = null, oldProductId: String? = null, replacementMode: GoogleReplacementMode = GoogleReplacementMode.WITHOUT_PRORATION)

A composable that provides a "slide to unlock" UI to initiate a purchase for a StoreProduct. When the user slides the component to the end, it triggers the RevenueCat purchase flow.

fun SlideToPurchases(subscriptionOption: SubscriptionOption, modifier: Modifier = Modifier, colors: SlideToUnlockColors = DefaultSlideToUnlockColors(), hintTexts: HintTexts = HintTexts.defaultHintTexts(), onSlideCompleted: () -> Unit = {}, onPurchaseStateChanged: (PurchaseState) -> Unit = {}, isPersonalizedPrice: Boolean? = null, oldProductId: String? = null, replacementMode: GoogleReplacementMode = GoogleReplacementMode.WITHOUT_PRORATION)

A composable that provides a "slide to unlock" UI to initiate a purchase for a specific SubscriptionOption. This is a Google Play-only function.