UpdatePrecondition

public abstract @interface UpdatePrecondition
implements Annotation

com.google.android.play.core.install.model.UpdatePrecondition


Conditions related to an available update that may prevent the immediate execution of certain AppUpdateTypes.

Summary

Constants

int APP_VERSION_FRESH

The app has already been updated recently.

int CANNOT_DISPLAY

The app cannot display the In-App Update dialog at the moment.

int DEVICE_STATUS

The current device status does not allow an update.

int INSUFFICIENT_STORAGE

There is not enough storage on the device to update the application.

int NEED_STORE_TO_PROCEED

The app can only be updated within the Play Store.

int UNKNOWN

Inherited methods

Constants

APP_VERSION_FRESH

public static final int APP_VERSION_FRESH

The app has already been updated recently.

Constant Value: 5 (0x00000005)

CANNOT_DISPLAY

public static final int CANNOT_DISPLAY

The app cannot display the In-App Update dialog at the moment. E.g. the app might be in the background.

Constant Value: 1 (0x00000001)

DEVICE_STATUS

public static final int DEVICE_STATUS

The current device status does not allow an update. E.g. the battery is too low.

Constant Value: 4 (0x00000004)

INSUFFICIENT_STORAGE

public static final int INSUFFICIENT_STORAGE

There is not enough storage on the device to update the application.

Constant Value: 3 (0x00000003)

NEED_STORE_TO_PROCEED

public static final int NEED_STORE_TO_PROCEED

The app can only be updated within the Play Store.

Constant Value: 2 (0x00000002)

UNKNOWN

public static final int UNKNOWN

Constant Value: 0 (0x00000000)