AssetPackStatus

public abstract @interface AssetPackStatus
implements Annotation

com.google.android.play.core.assetpacks.model.AssetPackStatus


Status of the download of an asset pack.

Summary

Constants

int CANCELED

The asset pack download has been canceled by the user through the Play Store or the download notification.

int COMPLETED

The asset pack download and transfer is complete; the assets are available to the app.

int DOWNLOADING

The asset pack download is in progress.

int FAILED

The asset pack download or transfer has failed.

int NOT_INSTALLED

The asset pack is not installed.

int PENDING

The asset pack download is pending and will be processed soon.

int REQUIRES_USER_CONFIRMATION

The asset pack requires user consent to be downloaded.

int TRANSFERRING

The asset pack is being decompressed and copied (or patched) to the app's internal storage.

int UNKNOWN

The asset pack state is unknown.

int WAITING_FOR_WIFI

The asset pack download is waiting for Wi-Fi to become available before proceeding.

Inherited methods

Constants

CANCELED

public static final int CANCELED

The asset pack download has been canceled by the user through the Play Store or the download notification.

Constant Value: 6 (0x00000006)

COMPLETED

public static final int COMPLETED

The asset pack download and transfer is complete; the assets are available to the app.

Constant Value: 4 (0x00000004)

DOWNLOADING

public static final int DOWNLOADING

The asset pack download is in progress.

Constant Value: 2 (0x00000002)

FAILED

public static final int FAILED

The asset pack download or transfer has failed.

Constant Value: 5 (0x00000005)

NOT_INSTALLED

public static final int NOT_INSTALLED

The asset pack is not installed.

Constant Value: 8 (0x00000008)

PENDING

public static final int PENDING

The asset pack download is pending and will be processed soon.

Constant Value: 1 (0x00000001)

REQUIRES_USER_CONFIRMATION

public static final int REQUIRES_USER_CONFIRMATION

The asset pack requires user consent to be downloaded.

This can happen if the current app version was not installed by Play.

If the asset pack is also waiting for Wi-Fi, this state takes precedence.

Constant Value: 9 (0x00000009)

TRANSFERRING

public static final int TRANSFERRING

The asset pack is being decompressed and copied (or patched) to the app's internal storage.

Constant Value: 3 (0x00000003)

UNKNOWN

public static final int UNKNOWN

The asset pack state is unknown.

Constant Value: 0 (0x00000000)

WAITING_FOR_WIFI

public static final int WAITING_FOR_WIFI

The asset pack download is waiting for Wi-Fi to become available before proceeding.

The app can ask the user to download a session that is waiting for Wi-Fi over cellular data by using AssetPackManager.showCellularDataConfirmation(Activity).

Constant Value: 7 (0x00000007)