# Barcode.ContactInfo

public static class **Barcode.ContactInfo** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
A person's or organization's business card. For example a VCARD.

### Public Method Summary

|---|---|
| [List](https://developer.android.com/reference/java/util/List.html)\<[Barcode.Address](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Address)\> | [getAddresses](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.ContactInfo#getAddresses())() Gets contact person's addresses. |
| [List](https://developer.android.com/reference/java/util/List.html)\<[Barcode.Email](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Email)\> | [getEmails](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.ContactInfo#getEmails())() Gets contact person's emails. |
| [Barcode.PersonName](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.PersonName) | [getName](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.ContactInfo#getName())() Gets contact person's name. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getOrganization](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.ContactInfo#getOrganization())() Gets contact person's organization. |
| [List](https://developer.android.com/reference/java/util/List.html)\<[Barcode.Phone](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Phone)\> | [getPhones](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.ContactInfo#getPhones())() Gets contact person's phones. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getTitle](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.ContactInfo#getTitle())() Gets contact person's title. |
| [List](https://developer.android.com/reference/java/util/List.html)\<[String](https://developer.android.com/reference/java/lang/String.html)\> | [getUrls](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.ContactInfo#getUrls())() Gets contact person's urls. |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Methods

#### public [List](https://developer.android.com/reference/java/util/List.html)\<[Barcode.Address](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Address)\>
**getAddresses** ()

Gets contact person's addresses.

Returns an empty list if nothing found.

#### public [List](https://developer.android.com/reference/java/util/List.html)\<[Barcode.Email](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Email)\>
**getEmails** ()

Gets contact person's emails.

Returns an empty list if nothing found.

#### public [Barcode.PersonName](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.PersonName)
**getName** ()

Gets contact person's name.

Returns `null` if not available.

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getOrganization** ()

Gets contact person's organization.

Returns `null` if not available.

#### public [List](https://developer.android.com/reference/java/util/List.html)\<[Barcode.Phone](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Phone)\>
**getPhones** ()

Gets contact person's phones.

Returns an empty list if nothing found.

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getTitle** ()

Gets contact person's title.

Returns `null` if not available.

#### public [List](https://developer.android.com/reference/java/util/List.html)\<[String](https://developer.android.com/reference/java/lang/String.html)\>
**getUrls** ()

Gets contact person's urls.

Returns an empty list if nothing found.