# Barcode.Email

public static class **Barcode.Email** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
An email message from a 'MAILTO:' or similar QRCode type.

### Nested Class Summary

|---|---|---|---|
| @interface | [Barcode.Email.FormatType](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Email.FormatType.md.txt) || Email format type constants. |

### Constant Summary

|---|---|---|
| int | [TYPE_HOME](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Email.md.txt#TYPE_HOME) | Home email. |
| int | [TYPE_UNKNOWN](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Email.md.txt#TYPE_UNKNOWN) | Unknown email type. |
| int | [TYPE_WORK](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Email.md.txt#TYPE_WORK) | Work email. |

### Public Method Summary

|---|---|
| [String](https://developer.android.com/reference/java/lang/String.html) | [getAddress](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Email.md.txt#getAddress())() Gets email's address. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getBody](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Email.md.txt#getBody())() Gets email's body. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getSubject](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Email.md.txt#getSubject())() Gets email's subject. |
| int | [getType](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Email.md.txt#getType())() Gets type of the email. |

### 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() |

## Constants

#### public static final int
**TYPE_HOME**

Home email.
Constant Value: 2

#### public static final int
**TYPE_UNKNOWN**

Unknown email type.
Constant Value: 0

#### public static final int
**TYPE_WORK**

Work email.
Constant Value: 1

## Public Methods

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

Gets email's address.

Returns `null` if not available.

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

Gets email's body.

Returns `null` if not available.

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

Gets email's subject.

Returns `null` if not available.

#### public int **getType** ()

Gets type of the email.

See also `
Barcode.Email.FormatType`.