AddressLauncher

constructor(activity: ComponentActivity, callback: AddressLauncherResultCallback)

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

Parameters

activity

the Activity that is presenting the address element.

callback

called with the result after the address element is dismissed.


constructor(fragment: Fragment, callback: AddressLauncherResultCallback)

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

Parameters

fragment

the Fragment that is presenting the payment sheet.

callback

called with the result after the address element is dismissed.