# AiPackStatus

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

# AiPackStatus

`
public


abstract
@interface
AiPackStatus
`  
`


implements

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


`

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

<br />

*** ** * ** ***

Status of the download of an AI pack.

## Summary

|                                                                                                              ### Constants                                                                                                               ||
|-------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [CANCELED](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackStatus.html#CANCELED) The AI pack download has been canceled by the user through the Play Store or the download notification. |
| `int` | [COMPLETED](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackStatus.html#COMPLETED) The AI pack download and transfer is complete; the AI packs are available to the app.                 |
| `int` | [DOWNLOADING](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackStatus.html#DOWNLOADING) The AI pack download is in progress.                                                              |
| `int` | [FAILED](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackStatus.html#FAILED) The AI pack download or transfer has failed.                                                                |
| `int` | [NOT_INSTALLED](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackStatus.html#NOT_INSTALLED) The AI pack is not installed.                                                                 |
| `int` | [PENDING](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackStatus.html#PENDING) The AI pack download is pending and will be processed soon.                                               |
| `int` | [REQUIRES_USER_CONFIRMATION](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackStatus.html#REQUIRES_USER_CONFIRMATION) The AI pack requires user consent to be downloaded.                 |
| `int` | [TRANSFERRING](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackStatus.html#TRANSFERRING) The AI pack is being decompressed and copied (or patched) to the app's internal storage.        |
| `int` | [UNKNOWN](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackStatus.html#UNKNOWN) The AI pack state is unknown.                                                                             |
| `int` | [WAITING_FOR_WIFI](https://developer.android.com/reference/com/google/android/play/core/aipacks/model/AiPackStatus.html#WAITING_FOR_WIFI) The AI pack download is waiting for Wi-Fi to become available before proceeding.        |

| ### 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

### CANCELED

```
public static final int CANCELED
```

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

<br />

Constant Value: 6 (0x00000006)  

### COMPLETED

```
public static final int COMPLETED
```

The AI pack download and transfer is complete; the AI packs are available to the app.

<br />

Constant Value: 4 (0x00000004)  

### DOWNLOADING

```
public static final int DOWNLOADING
```

The AI pack download is in progress.

<br />

Constant Value: 2 (0x00000002)  

### FAILED

```
public static final int FAILED
```

The AI pack download or transfer has failed.

<br />

Constant Value: 5 (0x00000005)  

### NOT_INSTALLED

```
public static final int NOT_INSTALLED
```

The AI pack is not installed.

<br />

Constant Value: 8 (0x00000008)  

### PENDING

```
public static final int PENDING
```

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

<br />

Constant Value: 1 (0x00000001)  

### REQUIRES_USER_CONFIRMATION

```
public static final int REQUIRES_USER_CONFIRMATION
```

The AI pack requires user consent to be downloaded.

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

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

<br />

Constant Value: 9 (0x00000009)  

### TRANSFERRING

```
public static final int TRANSFERRING
```

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

<br />

Constant Value: 3 (0x00000003)  

### UNKNOWN

```
public static final int UNKNOWN
```

The AI pack state is unknown.

<br />

Constant Value: 0 (0x00000000)  

### WAITING_FOR_WIFI

```
public static final int WAITING_FOR_WIFI
```

The AI 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[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>)).

<br />

Constant Value: 7 (0x00000007)