# AiPackErrorCode

Summary: [Constants](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode#constants) \| [Inherited Methods](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode#inhmethods)  

# AiPackErrorCode


`
public


abstract
@interface
AiPackErrorCode
`


`


implements

`[Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)`


`

|------------------------------------------------------------|
| com.google.android.play.core.aipacks.model.AiPackErrorCode |

<br />

*** ** * ** ***

Error codes for the download of an AI pack.

## Summary

|                                                                                                                                                                                                                                                        ### Constants                                                                                                                                                                                                                                                         ||
|-------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [ACCESS_DENIED](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode.html#ACCESS_DENIED) Download not permitted under the current device circumstances (e.g.                                                                                                                                                                                                                                                                                                            |
| `int` | [API_NOT_AVAILABLE](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode.html#API_NOT_AVAILABLE) The AI Delivery API isn't available.                                                                                                                                                                                                                                                                                                                                   |
| `int` | [APP_NOT_OWNED](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode.html#APP_NOT_OWNED) The app isn't owned by any user on this device.                                                                                                                                                                                                                                                                                                                                |
| `int` | [APP_UNAVAILABLE](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode.html#APP_UNAVAILABLE) The requesting app is unavailable.                                                                                                                                                                                                                                                                                                                                         |
| `int` | [CONFIRMATION_NOT_REQUIRED](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode.html#CONFIRMATION_NOT_REQUIRED) Returned if [AiPackManager.showConfirmationDialog(ActivityResultLauncher)](https://developer.android.com/reference/com/google/android/play/core/aipacks/AiPackManager.html#showConfirmationDialog(androidx.activity.result.ActivityResultLauncher<androidx.activity.result.IntentSenderRequest>)) is called but no AI packs require user confirmation. |
| `int` | [DOWNLOAD_NOT_FOUND](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode.html#DOWNLOAD_NOT_FOUND) The requested download isn't found.                                                                                                                                                                                                                                                                                                                                  |
| `int` | [INSUFFICIENT_STORAGE](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode.html#INSUFFICIENT_STORAGE) AI pack download failed due to insufficient storage.                                                                                                                                                                                                                                                                                                             |
| `int` | [INTERNAL_ERROR](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode.html#INTERNAL_ERROR) Unknown error downloading an AI pack.                                                                                                                                                                                                                                                                                                                                        |
| `int` | [INVALID_REQUEST](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode.html#INVALID_REQUEST) The request is invalid.                                                                                                                                                                                                                                                                                                                                                    |
| `int` | [NETWORK_ERROR](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode.html#NETWORK_ERROR) Network error.                                                                                                                                                                                                                                                                                                                                                                 |
| `int` | [NETWORK_UNRESTRICTED](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode.html#NETWORK_UNRESTRICTED) Returned if [AiPackManager.showConfirmationDialog(ActivityResultLauncher)](https://developer.android.com/reference/com/google/android/play/core/aipacks/AiPackManager.html#showConfirmationDialog(androidx.activity.result.ActivityResultLauncher<androidx.activity.result.IntentSenderRequest>)) is called but no AI packs are waiting for Wi-Fi.               |
| `int` | [NO_ERROR](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode.html#NO_ERROR)                                                                                                                                                                                                                                                                                                                                                                                          |
| `int` | [PACK_UNAVAILABLE](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode.html#PACK_UNAVAILABLE) The requested AI pack isn't available.                                                                                                                                                                                                                                                                                                                                   |
| `int` | [PLAY_STORE_NOT_FOUND](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode.html#PLAY_STORE_NOT_FOUND) The Play Store app is either not installed or not the official version.                                                                                                                                                                                                                                                                                          |
| `int` | [UNRECOGNIZED_INSTALLATION](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackErrorCode.html#UNRECOGNIZED_INSTALLATION) The installed app version is not recognized by Play.                                                                                                                                                                                                                                                                                                   |

| ### Inherited methods |
|-----------------------|---|
| From interface ` `[java.lang.annotation.Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)` ` |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` abstract `[Class](https://developer.android.com/reference/java/lang/Class.html)`<? extends `[Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)`>` | ` annotationType() `                                                                       | | ` abstract boolean`                                                                                                                                                                         | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` abstract int`                                                                                                                                                                             | ` hashCode() `                                                                             | | ` abstract `[String](https://developer.android.com/reference/java/lang/String.html)                                                                                                         | ` toString() `                                                                             | ||

## Constants

### ACCESS_DENIED

```
public static final int ACCESS_DENIED
```

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

<br />

Constant Value:

-7
(0xfffffff9)


### API_NOT_AVAILABLE

```
public static final int API_NOT_AVAILABLE
```

The AI Delivery API isn't available.

<br />

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.

<br />

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.

<br />

<br />

Constant Value:

-1
(0xffffffff)


### CONFIRMATION_NOT_REQUIRED

```
public static final int CONFIRMATION_NOT_REQUIRED
```

Returned if [AiPackManager.showConfirmationDialog(ActivityResultLauncher)](https://developer.android.com/reference/com/google/android/play/core/aipacks/AiPackManager.html#showConfirmationDialog(androidx.activity.result.ActivityResultLauncher<androidx.activity.result.IntentSenderRequest>))
is called but no AI packs require user confirmation.

<br />

Constant Value:

-14
(0xfffffff2)


### DOWNLOAD_NOT_FOUND

```
public static final int DOWNLOAD_NOT_FOUND
```

The requested download isn't found.

<br />

Constant Value:

-4
(0xfffffffc)


### INSUFFICIENT_STORAGE

```
public static final int INSUFFICIENT_STORAGE
```

AI pack download failed due to insufficient storage.

<br />

Constant Value:

-10
(0xfffffff6)


### INTERNAL_ERROR

```
public static final int INTERNAL_ERROR
```

Unknown error downloading an AI pack.

<br />

Constant Value:

-100
(0xffffff9c)


### INVALID_REQUEST

```
public static final int INVALID_REQUEST
```

The request is invalid.

<br />

Constant Value:

-3
(0xfffffffd)


### NETWORK_ERROR

```
public static final int NETWORK_ERROR
```

Network error. Unable to obtain the AI pack details.

<br />

Constant Value:

-6
(0xfffffffa)


### NETWORK_UNRESTRICTED

```
public static final int NETWORK_UNRESTRICTED
```

Returned if [AiPackManager.showConfirmationDialog(ActivityResultLauncher)](https://developer.android.com/reference/com/google/android/play/core/aipacks/AiPackManager.html#showConfirmationDialog(androidx.activity.result.ActivityResultLauncher<androidx.activity.result.IntentSenderRequest>))
is called but no AI packs are waiting for Wi-Fi.

<br />

Constant Value:

-12
(0xfffffff4)


### NO_ERROR

```
public static final int NO_ERROR
```

<br />

<br />

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.

<br />

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.

<br />

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.

<br />

Constant Value:

-15
(0xfffffff1)