AddressControl class
This class provides AddressControl on custom payment sheet.
AddressControl is used for displaying billing address or shipping address on custom payment sheet from "My Info" menu option on Samsung Wallet app.
Caution: AddressControl must be returned in onResult() on SheetUpdatedListener
to remove progress bar on custom payment sheet.
- Inheritance
-
- Object
- SheetControl
- AddressControl
Constructors
- AddressControl(String controlId, String sheetItemType)
- Constructor to create AddressControl.
Properties
- address ↔ Address?
-
getter/setter pair
- controlId ↔ String?
-
getter/setter pairinherited
- controltype ↔ Controltype
-
getter/setter pairinherited
- displayOption ↔ int?
-
getter/setter pair
- errorCode ↔ int?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sheetItem ↔ SheetItem?
-
getter/setter pair
- sheetUpdatedListener ↔ SheetUpdatedListener?
-
getter/setter pair
Methods
-
getAddress(
) → Address? - API to get address.
-
getAddressTitle(
) → String? - API to get address title.
-
getAddressType(
) → SheetItemType? - API to get address type.
-
getControlId(
) → String? -
API to get controlId.
inherited
-
getControltype(
) → Controltype -
API to get controltype.
inherited
-
getDisplayOption(
) → int? - API to get display option of SheetItemType.SHIPPING_ADDRESS on custom payment sheet.
-
getErrorCode(
) → int? - API to get error code of the AddressControl.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAddress(
Address address) → void - API to set address.
-
setAddressTitle(
String title) → void - API to set address title.
-
setDisplayOption(
int displayOption) → void - API to set display option of SheetItemType.SHIPPING_ADDRESS on custom payment sheet.
-
setErrorCode(
int errorCode) → void - API to set error code of the AddressControl.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- EXTRA_DISPLAY_OPTION → const String