UpdateManagerStatus

public class UpdateManagerStatus
extends Object implements Parcelable

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


Represents the current status of the UpdateManager.

Summary

Constants

int STATE_CHECKING_FOR_UPDATES

Currently checking for updates.

int STATE_DOWNLOADING_UPDATE

The UpdateManager is downloading an available update.

int STATE_FINALIZING_UPDATE

The UpdateManager is finalizing the update of the device.

int STATE_IDLE

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

int 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

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

An update is available.

Inherited constants

From interface android.os.Parcelable

Fields

public static final Creator<UpdateManagerStatus> CREATOR

public final int currentPolicy

The current UpdateManager policy that's in use.

public final int currentState

The current state of the UpdateManager.

public final VersionInfo currentVersionInfo

Information about the currently-running software on the device.

public final PendingUpdateInfo pendingUpdateInfo

Information about a pending device software update.

Public methods

int describeContents()
String toString()

Returns a string representation of the object.

void writeToParcel(Parcel dest, int flags)

Inherited methods

From class java.lang.Object
From interface android.os.Parcelable

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.

See also:

Constant Value: 1 (0x00000001)

STATE_DOWNLOADING_UPDATE

int STATE_DOWNLOADING_UPDATE

The UpdateManager is downloading an available update.

See also:

Constant Value: 3 (0x00000003)

STATE_FINALIZING_UPDATE

int STATE_FINALIZING_UPDATE

The UpdateManager is finalizing the update of the device.

See also:

Constant Value: 5 (0x00000005)

STATE_IDLE

int STATE_IDLE

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

See also:

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.

See also:

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

See also:

Constant Value: 6 (0x00000006)

STATE_UPDATE_AVAILABLE

int STATE_UPDATE_AVAILABLE

An update is available.

See also:

Constant Value: 2 (0x00000002)

Fields

CREATOR

Creator<UpdateManagerStatus> CREATOR

currentPolicy

int currentPolicy

The current UpdateManager policy that's in use.

currentVersionInfo

VersionInfo currentVersionInfo

Information about the currently-running software on the device.

pendingUpdateInfo

PendingUpdateInfo pendingUpdateInfo

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

Public methods

describeContents

int describeContents ()

Returns
int

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.

writeToParcel

void writeToParcel (Parcel dest, 
                int flags)

Parameters
dest Parcel

flags int