# PendingUpdateInfo

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

# PendingUpdateInfo

`
public


class
PendingUpdateInfo
`  
`

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


``


`

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

<br />

*** ** * ** ***

Extra information that only pertains to a pending update.

## Summary

|                                                                                                                                                               ### Fields                                                                                                                                                               ||
|---------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public final float`                                                                                               | [downloadProgress](https://developer.android.com/reference/com/google/android/things/update/PendingUpdateInfo#downloadProgress) The download progress (0-1.0 -\> 0-100%), during the download phase of an update. |
| ` public final long`                                                                                                | [downloadSize](https://developer.android.com/reference/com/google/android/things/update/PendingUpdateInfo#downloadSize) The size of the update to download.                                                       |
| ` public final `[VersionInfo](https://developer.android.com/reference/com/google/android/things/update/VersionInfo) | [versionInfo](https://developer.android.com/reference/com/google/android/things/update/PendingUpdateInfo#versionInfo) The version of the pending update.                                                          |

|                                                                                                               ### Public methods                                                                                                                ||
|-----------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[String](https://developer.android.com/reference/java/lang/String) | ` `[toString](https://developer.android.com/reference/com/google/android/things/update/PendingUpdateInfo#toString())`() ` Returns a string representation of the object. |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/com/google/android/things/update/PendingUpdateInfo#)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.                                                                                                                                  | ||

## Fields

### downloadProgress

```
float downloadProgress
```

The download progress (0-1.0 -\> 0-100%), during the download phase of an update. This will be 0 if there is no current download, and 1.0 after the download is complete (until the device is rebooted).

<br />

### downloadSize

```
long downloadSize
```

The size of the update to download. This will be 0 if there is no current download.

<br />

### versionInfo

```
VersionInfo versionInfo
```

The version of the pending update.

<br />

## Public methods

### 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 /> |

-

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