AI-generated Key Takeaways
-
Barcode.Phone provides information about a phone number.
-
It includes constants for different phone number types such as FAX, HOME, MOBILE, UNKNOWN, and WORK.
-
You can retrieve the phone number string and its type using the public methods getNumber() and getType().
Phone number info.
Nested Class Summary
| @interface | Barcode.Phone.FormatType | Phone number format type constants. | |
Constant Summary
| int | TYPE_FAX | Fax machine. |
| int | TYPE_HOME | Home phone. |
| int | TYPE_MOBILE | Mobile phone. |
| int | TYPE_UNKNOWN | Unknown phone type. |
| int | TYPE_WORK | Work phone. |
Public Method Summary
| String |
getNumber()
Gets phone number.
|
| int |
getType()
Gets type of the phone number.
|
Inherited Method Summary
Constants
public static final int TYPE_FAX
Fax machine.
public static final int TYPE_HOME
Home phone.
public static final int TYPE_MOBILE
Mobile phone.
public static final int TYPE_UNKNOWN
Unknown phone type.
public static final int TYPE_WORK
Work phone.
Public Methods
public String getNumber ()
Gets phone number.
Returns null if not available.
public int getType ()
Gets type of the phone number.
See also
Barcode.Phone.FormatType.