AddressViewController
@objc(STPAddressViewController)
public class AddressViewController : UIViewController
extension AddressViewController: UIGestureRecognizerDelegate
A view controller that collects a name and an address, with full localization and autocomplete.
Note
It usesnavigationItem
and can push a view controller, so it must be shown inside a UINavigationController
.
-
Configuration containing e.g. appearance styling properties, default values, etc.
Declaration
Swift
public let configuration: Configuration
-
The delegate, notified when the customer completes or cancels.
Declaration
Swift
public weak var delegate: AddressViewControllerDelegate?
-
Initializes an
AddressViewController
.Note
Make sure you put this in aUINavigationController
before presenting or pushing it.Declaration
Swift
public convenience init( configuration: Configuration, delegate: AddressViewControllerDelegate )
Parameters
configuration
The configuration for this
AddressViewController
e.g., to style the appearance.delegate
This is called after the customer completes entering their address or cancels the sheet.
-
The customer data collected by
See moreAddressViewController
Declaration
Swift
struct AddressDetails
-
Configuration for an
See moreAddressViewController
instance.Declaration
Swift
struct Configuration