PendingUpdateInfo

public class PendingUpdateInfo
extends Object

java.lang.Object
   ↳ com.google.android.things.update.PendingUpdateInfo


Extra information that only pertains to a pending update.

Summary

Fields

public final float downloadProgress

The download progress (0-1.0 -> 0-100%), during the download phase of an update.

public final long downloadSize

The size of the update to download.

public final VersionInfo versionInfo

The version of the pending update.

Public methods

String toString()

Returns a string representation of the object.

Inherited methods

From class java.lang.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).

downloadSize

long downloadSize

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

versionInfo

VersionInfo versionInfo

The version of the pending update.

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

Returns
String a string representation of the object.