rememberCustomerSheet
fun rememberCustomerSheet(customerAdapter: CustomerAdapter, callback: CustomerSheetResultCallback): CustomerSheet
Creates a CustomerSheet that is remembered across compositions.
This must be called unconditionally, as part of the initialization path.
Parameters
customerAdapter
The CustomerAdapter to fetch customer-related information
callback
Called with the result of the operation after CustomerSheet is dismissed
fun rememberCustomerSheet(customerSessionProvider: CustomerSheet.CustomerSessionProvider, callback: CustomerSheetResultCallback): CustomerSheet
Creates a CustomerSheet with CustomerSession
support that is remembered across compositions.
This must be called unconditionally, as part of the initialization path.
Parameters
customerSessionProvider
provider for providing customer session elements
callback
Called with the result of the operation after CustomerSheet is dismissed