DebugRevenueCatBottomSheet

fun DebugRevenueCatBottomSheet(onPurchaseCompleted: (StoreTransaction) -> Unit, onPurchaseErrored: (PurchasesTransactionException) -> Unit, isVisible: Boolean = false, onDismissCallback: () -> Unit? = null)

Composable function that allows to display the debug screen as a bottom sheet.

Parameters

onPurchaseCompleted

Callback that will be called when a purchase is completed within the debug screen.

onPurchaseErrored

Callback that will be called when a purchase fails or is cancelled within the debug screen.

isVisible

Whether the bottom sheet should be visible or not.

onDismissCallback

Callback that will be called when the bottom sheet is dismissed.