# Barcode.Sms

public static class **Barcode.Sms** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
A sms message from a 'SMS:' or similar QRCode type.

### Public Method Summary

|---|---|
| [String](https://developer.android.com/reference/java/lang/String.html) | [getMessage](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Sms.md.txt#getMessage())() Gets the message content of the sms. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getPhoneNumber](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Sms.md.txt#getPhoneNumber())() Gets the phone number of the sms. |

### 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 [String](https://developer.android.com/reference/java/lang/String.html) **getMessage** ()

Gets the message content of the sms.

Returns `null` if not available.

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

Gets the phone number of the sms.

Returns `null` if not available.