AddressLauncher

A drop-in class that presents a bottom sheet to collect a customer's address.

Constructors

Link copied to clipboard
constructor(activity: ComponentActivity, callback: AddressLauncherResultCallback)

Constructor to be used when launching the address element from an Activity.

constructor(fragment: Fragment, callback: AddressLauncherResultCallback)

Constructor to be used when launching the address element from a Fragment.

Types

Link copied to clipboard
data class AdditionalFieldsConfiguration(val phone: AddressLauncher.AdditionalFieldsConfiguration.FieldConfiguration = FieldConfiguration.HIDDEN, val checkboxLabel: String? = null) : Parcelable
Link copied to clipboard

Configuration for AddressLauncher

Functions

Link copied to clipboard
fun present(publishableKey: String, configuration: AddressLauncher.Configuration = Configuration())