# DownloadConditions

public class **DownloadConditions** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
Conditions to download remote models.

### Nested Class Summary

|---|---|---|---|
| class | [DownloadConditions.Builder](https://developers.google.com/android/reference/com/google/mlkit/common/model/DownloadConditions.Builder) || Builder of `https://developers.google.com/android/reference/com/google/mlkit/common/model/DownloadConditions`. |

### Public Method Summary

|---|---|
| boolean | [equals](https://developers.google.com/android/reference/com/google/mlkit/common/model/DownloadConditions#equals(java.lang.Object))([Object](https://developer.android.com/reference/java/lang/Object.html) o) Indicates whether some other object is "equal to" this one. |
| int | [hashCode](https://developers.google.com/android/reference/com/google/mlkit/common/model/DownloadConditions#hashCode())() Returns a hash code value for the object. |
| boolean | [isChargingRequired](https://developers.google.com/android/reference/com/google/mlkit/common/model/DownloadConditions#isChargingRequired())() Returns true if charging is required for download. |
| boolean | [isWifiRequired](https://developers.google.com/android/reference/com/google/mlkit/common/model/DownloadConditions#isWifiRequired())() Returns true if wifi is required for download. |

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

Indicates whether some other object is "equal to" this one.

#### public int **hashCode** ()

Returns a hash code value for the object.

#### public boolean **isChargingRequired** ()

Returns true if charging is required for download.

#### public boolean **isWifiRequired** ()

Returns true if wifi is required for download.