AiPackErrorCode
public
abstract
@interface
AiPackErrorCode
implements
Annotation
com.google.android.play.core.aipacks.model.AiPackErrorCode |
Error codes for the download of an AI pack.
Summary
Constants | |
---|---|
int |
ACCESS_DENIED
Download not permitted under the current device circumstances (e.g. |
int |
API_NOT_AVAILABLE
The AI Delivery API isn't available. |
int |
APP_NOT_OWNED
The app isn't owned by any user on this device. |
int |
APP_UNAVAILABLE
The requesting app is unavailable. |
int |
CONFIRMATION_NOT_REQUIRED
Returned if |
int |
DOWNLOAD_NOT_FOUND
The requested download isn't found. |
int |
INSUFFICIENT_STORAGE
AI pack download failed due to insufficient storage. |
int |
INTERNAL_ERROR
Unknown error downloading an AI pack. |
int |
INVALID_REQUEST
The request is invalid. |
int |
NETWORK_ERROR
Network error. |
int |
NETWORK_UNRESTRICTED
Returned if |
int |
NO_ERROR
|
int |
PACK_UNAVAILABLE
The requested AI pack isn't available. |
int |
PLAY_STORE_NOT_FOUND
The Play Store app is either not installed or not the official version. |
int |
UNRECOGNIZED_INSTALLATION
The installed app version is not recognized by Play. |
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 AI Delivery API isn't available.
Constant Value: -5 (0xfffffffb)
APP_NOT_OWNED
public static final int APP_NOT_OWNED
The app isn't owned by any user on this device. An app is "owned" if it has been installed via the Play Store.
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 have access to the app, e.g. the app is on a track the user has no access to.
Constant Value: -1 (0xffffffff)
CONFIRMATION_NOT_REQUIRED
public static final int CONFIRMATION_NOT_REQUIRED
Returned if AiPackManager.showConfirmationDialog(ActivityResultLauncher
is called but no AI packs require user confirmation.
Constant Value: -14 (0xfffffff2)
DOWNLOAD_NOT_FOUND
public static final int DOWNLOAD_NOT_FOUND
The requested download isn't found.
Constant Value: -4 (0xfffffffc)
INSUFFICIENT_STORAGE
public static final int INSUFFICIENT_STORAGE
AI pack download failed due to insufficient storage.
Constant Value: -10 (0xfffffff6)
INTERNAL_ERROR
public static final int INTERNAL_ERROR
Unknown error downloading an AI 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 AI pack details.
Constant Value: -6 (0xfffffffa)
NETWORK_UNRESTRICTED
public static final int NETWORK_UNRESTRICTED
Returned if AiPackManager.showConfirmationDialog(ActivityResultLauncher)
is called but no AI 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 AI pack isn't available.
This can happen if the AI 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)
UNRECOGNIZED_INSTALLATION
public static final int UNRECOGNIZED_INSTALLATION
The installed app version is not recognized by Play. This can happen if the app was not installed by Play.
Constant Value: -15 (0xfffffff1)