Google is committed to advancing racial equity for Black communities. See how.

AssetPackErrorCode

public abstract @interface AssetPackErrorCode
implements Annotation

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


Error codes for the download of an asset pack.

Summary

Constants

int ACCESS_DENIED

Download not permitted under the current device circumstances (e.g.

int API_NOT_AVAILABLE

The Asset Delivery API is not available.

int APP_NOT_OWNED

The app is not owned by any user on this device.

int APP_UNAVAILABLE

The requesting app is unavailable.

int DOWNLOAD_NOT_FOUND

The requested download is not found.

int INSUFFICIENT_STORAGE

Asset pack download failed due to insufficient storage.

int INTERNAL_ERROR

Unknown error downloading an asset pack.

int INVALID_REQUEST

The request is invalid.

int NETWORK_ERROR

Network error.

int NETWORK_UNRESTRICTED

Returned if showCellularDataConfirmation(Activity) is called but no asset packs are waiting for Wi-Fi.

int NO_ERROR

int PACK_UNAVAILABLE

The requested asset pack is not available.

int PLAY_STORE_NOT_FOUND

The Play Store app is either not installed or not the official version.

Inherited methods

From interface java.lang.annotation.Annotation

Constants

ACCESS_DENIED

int ACCESS_DENIED

Download not permitted under the current device circumstances (e.g. in background).

Constant Value: -7 (0xfffffff9)

API_NOT_AVAILABLE

int API_NOT_AVAILABLE

The Asset Delivery API is not available.

Constant Value: -5 (0xfffffffb)

APP_NOT_OWNED

int APP_NOT_OWNED

The app is not owned by any user on this device. An app is "owned" if it has been acquired from Play.

Constant Value: -13 (0xfffffff3)

APP_UNAVAILABLE

int APP_UNAVAILABLE

The requesting app is unavailable.

This could be caused by multiple reasons:

  • The app isn't published in the Play Store.
  • The app version code isn't published in the Play Store. Note: an older version may exist.
  • The user doesn't own the app, i.e. hasn't installed it via the Play Store.
  • The user doesn't have access to the app, e.g. the app is on a track the user has no access to.

Constant Value: -1 (0xffffffff)

DOWNLOAD_NOT_FOUND

int DOWNLOAD_NOT_FOUND

The requested download is not found.

Constant Value: -4 (0xfffffffc)

INSUFFICIENT_STORAGE

int INSUFFICIENT_STORAGE

Asset pack download failed due to insufficient storage.

Constant Value: -10 (0xfffffff6)

INTERNAL_ERROR

int INTERNAL_ERROR

Unknown error downloading an asset pack.

Constant Value: -100 (0xffffff9c)

INVALID_REQUEST

int INVALID_REQUEST

The request is invalid.

Constant Value: -3 (0xfffffffd)

NETWORK_ERROR

int NETWORK_ERROR

Network error. Unable to obtain the asset pack details.

Constant Value: -6 (0xfffffffa)

NETWORK_UNRESTRICTED

int NETWORK_UNRESTRICTED

Returned if showCellularDataConfirmation(Activity) is called but no asset packs are waiting for Wi-Fi.

Constant Value: -12 (0xfffffff4)

NO_ERROR

int NO_ERROR

Constant Value: 0 (0x00000000)

PACK_UNAVAILABLE

int PACK_UNAVAILABLE

The requested asset pack is not available.

This can happen if the asset pack wasn't included in the Android App Bundle that was published to the Play Store.

Constant Value: -2 (0xfffffffe)

PLAY_STORE_NOT_FOUND

int PLAY_STORE_NOT_FOUND

The Play Store app is either not installed or not the official version.

Constant Value: -11 (0xfffffff5)