Modals¶
Three of the core flows in the WalletScreen - Add Funds, Auto Reload Configuration, and Reload Sources - are presented in modals or bottom sheets. The content of these sheets are available for use in your own Compose application as needed.
AddFundsActionSheetContent(
configuration: UserReloadConfiguration?,
selectedAmount: Int? = null,
onSelectReloadSource: () -> Unit,
onFundsAddedSuccessfully: () -> Unit,
)
AutoReloadActionSheetContent(
autoReloadConfiguration: AutoReloadConfiguration?,
userReloadConfiguration: UserReloadConfiguration?,
reloadAmount: Double?,
onReloadAmountChangeRequested: () -> Unit,
reloadSource: Card?,
onReloadSourceChangeRequested: () -> Unit,
onSave: () -> Unit,
)
ReloadActionSheetContent(
paymentMethods: List<PaymentMethod>,
selectedCard: Card?,
onAddCard: () -> Unit,
onSelected: (PaymentMethod) -> Unit,
)
These share logic with the modals seen in WalletScreen based on the data provided.