Android 12 Developer Preview is here! Try it out, and give us your feedback!

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

Constants

ACCESS_DENIED

public static final int ACCESS_DENIED

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

Constant Value: -7 (0xfffffff9)

API_NOT_AVAILABLE

public static final int API_NOT_AVAILABLE

The Asset Delivery API is not available.

Constant Value: -5 (0xfffffffb)

APP_NOT_OWNED

public static final 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

public static final 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

public static final int DOWNLOAD_NOT_FOUND

The requested download is not found.

Constant Value: -4 (0xfffffffc)

INSUFFICIENT_STORAGE

public static final int INSUFFICIENT_STORAGE

Asset pack download failed due to insufficient storage.

Constant Value: -10 (0xfffffff6)

INTERNAL_ERROR

public static final int INTERNAL_ERROR

Unknown error downloading an asset pack.

Constant Value: -100 (0xffffff9c)

INVALID_REQUEST

public static final int INVALID_REQUEST

The request is invalid.

Constant Value: -3 (0xfffffffd)

NETWORK_ERROR

public static final int NETWORK_ERROR

Network error. Unable to obtain the asset pack details.

Constant Value: -6 (0xfffffffa)

NETWORK_UNRESTRICTED

public static final int NETWORK_UNRESTRICTED

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

Constant Value: -12 (0xfffffff4)

NO_ERROR

public static final int NO_ERROR

Constant Value: 0 (0x00000000)

PACK_UNAVAILABLE

public static final 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

public static final int PLAY_STORE_NOT_FOUND

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

Constant Value: -11 (0xfffffff5)