[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-08-08 UTC."],[],[],null,["# FirebaseVisionBarcode.Phone\n\npublic static class **FirebaseVisionBarcode.Phone** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nPhone number info. \n\n### Nested Class Summary\n\n|------------|---|---|-------------------------------------|\n| @interface | [FirebaseVisionBarcode.Phone.FormatType](/docs/reference/android/com/google/firebase/ml/vision/barcode/FirebaseVisionBarcode.Phone.FormatType) || Phone number format type constants. |\n\n### Constant Summary\n\n|-----|------------------------------------------------------------------------------------------------------------------------|---------------------|\n| int | [TYPE_FAX](/docs/reference/android/com/google/firebase/ml/vision/barcode/FirebaseVisionBarcode.Phone#TYPE_FAX) | Fax machine. |\n| int | [TYPE_HOME](/docs/reference/android/com/google/firebase/ml/vision/barcode/FirebaseVisionBarcode.Phone#TYPE_HOME) | Home phone. |\n| int | [TYPE_MOBILE](/docs/reference/android/com/google/firebase/ml/vision/barcode/FirebaseVisionBarcode.Phone#TYPE_MOBILE) | Mobile phone. |\n| int | [TYPE_UNKNOWN](/docs/reference/android/com/google/firebase/ml/vision/barcode/FirebaseVisionBarcode.Phone#TYPE_UNKNOWN) | Unknown phone type. |\n| int | [TYPE_WORK](/docs/reference/android/com/google/firebase/ml/vision/barcode/FirebaseVisionBarcode.Phone#TYPE_WORK) | Work phone. |\n\n### Public Method Summary\n\n|-------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](//developer.android.com/reference/java/lang/String.html) | [getNumber](/docs/reference/android/com/google/firebase/ml/vision/barcode/FirebaseVisionBarcode.Phone#getNumber())() Gets phone number. |\n| int | [getType](/docs/reference/android/com/google/firebase/ml/vision/barcode/FirebaseVisionBarcode.Phone#getType())() Gets type of the phone number. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nConstants\n---------\n\n#### public static final int\n**TYPE_FAX**\n\nFax machine. \nConstant Value: 3 \n\n#### public static final int\n**TYPE_HOME**\n\nHome phone. \nConstant Value: 2 \n\n#### public static final int\n**TYPE_MOBILE**\n\nMobile phone. \nConstant Value: 4 \n\n#### public static final int\n**TYPE_UNKNOWN**\n\nUnknown phone type. \nConstant Value: 0 \n\n#### public static final int\n**TYPE_WORK**\n\nWork phone. \nConstant Value: 1\n\nPublic Methods\n--------------\n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **getNumber** ()\n\nGets phone number. \n\n#### public int **getType** ()\n\nGets type of the phone number.\n\nSee also [FirebaseVisionBarcode.Phone.FormatType](/docs/reference/android/com/google/firebase/ml/vision/barcode/FirebaseVisionBarcode.Phone.FormatType)"]]