AI-generated Key Takeaways
-
Barcode.Address
represents an address extracted from a barcode and provides methods to access its details. -
You can get the formatted address lines using
getAddressLines()
and the address type (home, work, or unknown) viagetType()
. -
Three address types are defined:
TYPE_HOME
,TYPE_WORK
, andTYPE_UNKNOWN
.
An address.
Nested Class Summary
@interface | Barcode.Address.AddressType | Address type constants. |
Constant Summary
int | TYPE_HOME | Home address. |
int | TYPE_UNKNOWN | Unknown address type. |
int | TYPE_WORK | Work address. |
Public Method Summary
String[] |
getAddressLines()
Gets formatted address, multiple lines when appropriate.
|
int |
getType()
Gets type of the address.
|
Inherited Method Summary
Constants
public static final int TYPE_HOME
Home address.
public static final int TYPE_UNKNOWN
Unknown address type.
public static final int TYPE_WORK
Work address.
Public Methods
public String[] getAddressLines ()
Gets formatted address, multiple lines when appropriate. This field always contains at least one line.
public int getType ()
Gets type of the address.
See also
Barcode.Address.AddressType