# UpdateManagerStatus

Summary: [Constants](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#constants) \| [Inherited Constants](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#inhconstants) \| [Fields](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#lfields) \| [Methods](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#inhmethods) \| [\[Expand All\]](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#)  

# UpdateManagerStatus


`
public


class
UpdateManagerStatus
`


`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


`

`


implements

`[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)`


`

|---|------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | com.google.android.things.update.UpdateManagerStatus |

<br />

*** ** * ** ***

Represents the current status of the UpdateManager.

## Summary

|                                                                                                                                                                ### Constants                                                                                                                                                                ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [STATE_CHECKING_FOR_UPDATES](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#STATE_CHECKING_FOR_UPDATES) Currently checking for updates.                                                                                                                                                |
| `int` | [STATE_DOWNLOADING_UPDATE](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#STATE_DOWNLOADING_UPDATE) The UpdateManager is downloading an available update.                                                                                                                              |
| `int` | [STATE_FINALIZING_UPDATE](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#STATE_FINALIZING_UPDATE) The UpdateManager is finalizing the update of the device.                                                                                                                            |
| `int` | [STATE_IDLE](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#STATE_IDLE) The UpdateManager is idle, waiting for the next time to check for updates.                                                                                                                                     |
| `int` | [STATE_REPORTING_ERROR](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#STATE_REPORTING_ERROR) The UpdateManager has encountered an error in performing an update and is reporting it to the update server.                                                                             |
| `int` | [STATE_UPDATED_NEEDS_REBOOT](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#STATE_UPDATED_NEEDS_REBOOT) The UpdateManager has finished updating the device and is waiting for the device to be rebooted by the user or the application (it will not be rebooted by the UpdateManager). |
| `int` | [STATE_UPDATE_AVAILABLE](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#STATE_UPDATE_AVAILABLE) An update is available.                                                                                                                                                                |

|                                                                                                                                                                                           ### Inherited constants                                                                                                                                                                                           |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#)From interface ` android.os.Parcelable ` |-------|---------------------------------| | `int` | `CONTENTS_FILE_DESCRIPTOR`      | | `int` | `PARCELABLE_ELIDE_DUPLICATES`   | | `int` | `PARCELABLE_WRITE_RETURN_VALUE` | |

|                                                                                                                                                                                                                                             ### Fields                                                                                                                                                                                                                                             ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public static final `[Creator](https://developer.android.com/reference/android/os/Parcelable.Creator.html)`<`[UpdateManagerStatus](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus)`>` | [CREATOR](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#CREATOR)                                                                                                                                             |
| ` public final int`                                                                                                                                                                                                                   | [currentPolicy](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#currentPolicy) The current UpdateManager policy that's in use.                                                                                 |
| ` public final int`                                                                                                                                                                                                                   | [currentState](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#currentState) The current state of the [UpdateManager](https://developer.android.com/reference/com/google/android/things/update/UpdateManager). |
| ` public final `[VersionInfo](https://developer.android.com/reference/com/google/android/things/update/VersionInfo)                                                                                                                   | [currentVersionInfo](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#currentVersionInfo) Information about the currently-running software on the device.                                                       |
| ` public final `[PendingUpdateInfo](https://developer.android.com/reference/com/google/android/things/update/PendingUpdateInfo)                                                                                                       | [pendingUpdateInfo](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#pendingUpdateInfo) Information about a pending device software update.                                                                     |

|                                                                                                                                                      ### Public methods                                                                                                                                                      ||
|-----------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`                                                                | ` `[describeContents](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#describeContents())`() `                                                                                                           |
| ` `[String](https://developer.android.com/reference/java/lang/String) | ` `[toString](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#toString())`() ` Returns a string representation of the object.                                                                            |
| ` void`                                                               | ` `[writeToParcel](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#writeToParcel(android.os.Parcel, int))`(`[Parcel](https://developer.android.com/reference/android/os/Parcel.html)` dest, int flags) ` |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#)From class ` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                                                                                                                                                                                                                                          | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                                                                                                                                                                                                                                               | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                                                                                                                                                                                                                                              | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this `Object`.                                                                                                                                                                                                                                                                                                                                                                   | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                                                                                                                                                                                                                                     | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                                                                                                                                                                                                                                                | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                                                                                                                                                                                                                                             | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                                                                                                                                                                                                                                                | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long, int))`(long millis, int nanos) ` Causes the current thread to wait until another thread invokes the [notify()](https://developer.android.com/reference/java/lang/Object.html#notify()) method or the [notifyAll()](https://developer.android.com/reference/java/lang/Object.html#notifyAll()) method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long millis) ` Causes the current thread to wait until either another thread invokes the [notify()](https://developer.android.com/reference/java/lang/Object.html#notify()) method or the [notifyAll()](https://developer.android.com/reference/java/lang/Object.html#notifyAll()) method for this object, or a specified amount of time has elapsed.                                                                 | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until another thread invokes the [notify()](https://developer.android.com/reference/java/lang/Object.html#notify()) method or the [notifyAll()](https://developer.android.com/reference/java/lang/Object.html#notifyAll()) method for this object.                                                                                                                                  | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#)From interface ` `[android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)` ` |------------------|--------------------------------------------------------------------------------------------------------------| | ` abstract int`  | ` describeContents() `                                                                                       | | ` abstract void` | ` writeToParcel(`[Parcel](https://developer.android.com/reference/android/os/Parcel.html)` arg0, int arg1) ` | ||

## Constants

### STATE_CHECKING_FOR_UPDATES

```
int STATE_CHECKING_FOR_UPDATES
```

Currently checking for updates. Usually should be ignored, but useful for a UX
flow around day 0 update checks during unboxing.

<br />

**See also:**

- [currentState](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#currentState)

Constant Value:

1
(0x00000001)


### STATE_DOWNLOADING_UPDATE

```
int STATE_DOWNLOADING_UPDATE
```

The UpdateManager is downloading an available update.

<br />

**See also:**

- [currentState](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#currentState)

Constant Value:

3
(0x00000003)


### STATE_FINALIZING_UPDATE

```
int STATE_FINALIZING_UPDATE
```

The UpdateManager is finalizing the update of the device.

<br />

**See also:**

- [currentState](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#currentState)

Constant Value:

5
(0x00000005)


### STATE_IDLE

```
int STATE_IDLE
```

The UpdateManager is idle, waiting for the next time to check for updates.

<br />

**See also:**

- [currentState](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#currentState)

Constant Value:

0
(0x00000000)


### STATE_REPORTING_ERROR

```
int STATE_REPORTING_ERROR
```

The UpdateManager has encountered an error in performing an update and is reporting it to the
update server.

<br />

**See also:**

- [currentState](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#currentState)

Constant Value:

7
(0x00000007)


### STATE_UPDATED_NEEDS_REBOOT

```
int STATE_UPDATED_NEEDS_REBOOT
```

The UpdateManager has finished updating the device and is waiting for the device to be
rebooted by the user or the application (it will not be rebooted by the UpdateManager).

<br />

**See also:**

- [currentState](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#currentState)

Constant Value:

6
(0x00000006)


### STATE_UPDATE_AVAILABLE

```
int STATE_UPDATE_AVAILABLE
```

An update is available.

<br />

**See also:**

- [currentState](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#currentState)

Constant Value:

2
(0x00000002)


## Fields

### CREATOR

```
Creator<UpdateManagerStatus> CREATOR
```

<br />

<br />

### currentPolicy

```
int currentPolicy
```

The current UpdateManager policy that's in use.

<br />

### currentState

```
int currentState
```

The current state of the [UpdateManager](https://developer.android.com/reference/com/google/android/things/update/UpdateManager).

<br />

**See also:**

- [STATE_IDLE](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#STATE_IDLE)
- [STATE_CHECKING_FOR_UPDATES](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#STATE_CHECKING_FOR_UPDATES)
- [STATE_UPDATE_AVAILABLE](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#STATE_UPDATE_AVAILABLE)
- [STATE_FINALIZING_UPDATE](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#STATE_FINALIZING_UPDATE)
- [STATE_UPDATED_NEEDS_REBOOT](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#STATE_UPDATED_NEEDS_REBOOT)
- [STATE_REPORTING_ERROR](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus#STATE_REPORTING_ERROR)  

### currentVersionInfo

```
VersionInfo currentVersionInfo
```

Information about the currently-running software on the device.

<br />

### pendingUpdateInfo

```
PendingUpdateInfo pendingUpdateInfo
```

Information about a pending device software update. This is `null` if there is no
pending or in-progress update.

<br />

## Public methods

### describeContents

```
int describeContents ()
```

<br />

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### toString

```
String toString ()
```

Returns a string representation of the object. In general, the
`toString` method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.


The `toString` method for class `Object`
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character \``@`', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
>
> ```
>  getClass().getName() + '@' + Integer.toHexString(hashCode())
>  
> ```

<br />

<br />

|                                                      Returns                                                      ||
|--------------------------------------------------------------------|-----------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | a string representation of the object. <br /> |

### writeToParcel

```
void writeToParcel (Parcel dest, 
                int flags)
```

<br />

<br />

|        Parameters        ||
|---------|-----------------|
| `dest`  | `Parcel` <br /> |
| `flags` | `int` <br />    |

-

  ## Interfaces

  - [StatusListener](https://developer.android.com/reference/com/google/android/things/update/StatusListener)
-

  ## Classes

  - [PendingUpdateInfo](https://developer.android.com/reference/com/google/android/things/update/PendingUpdateInfo)
  - [UpdateManager](https://developer.android.com/reference/com/google/android/things/update/UpdateManager)
  - [UpdateManagerStatus](https://developer.android.com/reference/com/google/android/things/update/UpdateManagerStatus)
  - [UpdatePolicy](https://developer.android.com/reference/com/google/android/things/update/UpdatePolicy)
  - [UpdatePolicy.Builder](https://developer.android.com/reference/com/google/android/things/update/UpdatePolicy.Builder)
  - [VersionInfo](https://developer.android.com/reference/com/google/android/things/update/VersionInfo)