Skip to content

Most visited

Recently visited

navigation

UpdateManagerStatus

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

writeToParcel

void writeToParcel (Parcel dest, 
                int flags)

Parameters
dest Parcel
flags int
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)