# Barcode.WiFi

public static class **Barcode.WiFi** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
A wifi network parameters from a 'WIFI:' or similar QRCode type.

### Nested Class Summary

|---|---|---|---|
| @interface | [Barcode.WiFi.EncryptionType](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.WiFi.EncryptionType.md.txt) || Wifi encryption type constants. |

### Constant Summary

|---|---|---|
| int | [TYPE_OPEN](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.WiFi.md.txt#TYPE_OPEN) | Not encrypted. |
| int | [TYPE_WEP](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.WiFi.md.txt#TYPE_WEP) | WEP level encryption. |
| int | [TYPE_WPA](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.WiFi.md.txt#TYPE_WPA) | WPA level encryption. |

### Public Method Summary

|---|---|
| int | [getEncryptionType](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.WiFi.md.txt#getEncryptionType())() Gets the encryption type of the WIFI. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getPassword](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.WiFi.md.txt#getPassword())() Gets the password of the WIFI. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getSsid](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.WiFi.md.txt#getSsid())() Gets the ssid of the WIFI. |

### 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_OPEN**

Not encrypted.
Constant Value: 1

#### public static final int
**TYPE_WEP**

WEP level encryption.
Constant Value: 3

#### public static final int
**TYPE_WPA**

WPA level encryption.
Constant Value: 2

## Public Methods

#### public int **getEncryptionType** ()

Gets the encryption type of the WIFI.

See all `
Barcode.WiFi.EncryptionType`.

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

Gets the password of the WIFI.

Returns `null` if not available.

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

Gets the ssid of the WIFI.

Returns `null` if not available.