Stay organized with collections
Save and categorize content based on your preferences.
AiPackStatus
public
abstract
@interface
AiPackStatus
implements
Annotation
com.google.android.play.core.aipacks.model.AiPackStatus
|
Status of the download of an AI pack.
Summary
Constants |
int |
CANCELED
The AI pack download has been canceled by the user through the Play Store or the download
notification.
|
int |
COMPLETED
The AI pack download and transfer is complete; the AI packs are available to the app.
|
int |
DOWNLOADING
The AI pack download is in progress.
|
int |
FAILED
The AI pack download or transfer has failed.
|
int |
NOT_INSTALLED
The AI pack is not installed.
|
int |
PENDING
The AI pack download is pending and will be processed soon.
|
int |
REQUIRES_USER_CONFIRMATION
The AI pack requires user consent to be downloaded.
|
int |
TRANSFERRING
The AI pack is being decompressed and copied (or patched) to the app's internal storage.
|
int |
UNKNOWN
The AI pack state is unknown.
|
int |
WAITING_FOR_WIFI
The AI pack download is waiting for Wi-Fi to become available before proceeding.
|
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.
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.
Constant Value:
4
(0x00000004)
DOWNLOADING
public static final int DOWNLOADING
The AI pack download is in progress.
Constant Value:
2
(0x00000002)
FAILED
public static final int FAILED
The AI pack download or transfer has failed.
Constant Value:
5
(0x00000005)
NOT_INSTALLED
public static final int NOT_INSTALLED
The AI pack is not installed.
Constant Value:
8
(0x00000008)
PENDING
public static final int PENDING
The AI pack download is pending and will be processed soon.
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.
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.
Constant Value:
3
(0x00000003)
UNKNOWN
public static final int UNKNOWN
The AI pack state is unknown.
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)
.
Constant Value:
7
(0x00000007)
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# AiPackStatus\n\nSummary: [Constants](#constants) \\| [Inherited Methods](#inhmethods) \n\nAiPackStatus\n============\n\n\n`\npublic\n\n\nabstract\n@interface\nAiPackStatus\n`\n\n\n`\n\n\nimplements\n\n`[Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)`\n\n\n`\n\n|---------------------------------------------------------|\n| com.google.android.play.core.aipacks.model.AiPackStatus |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nStatus of the download of an AI pack.\n\nSummary\n-------\n\n| ### Constants ||\n|-------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [CANCELED](../../../../../../../../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. |\n| `int` | [COMPLETED](../../../../../../../../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. |\n| `int` | [DOWNLOADING](../../../../../../../../reference/com/google/android/play/core/aipacks/model/AiPackStatus.html#DOWNLOADING) The AI pack download is in progress. |\n| `int` | [FAILED](../../../../../../../../reference/com/google/android/play/core/aipacks/model/AiPackStatus.html#FAILED) The AI pack download or transfer has failed. |\n| `int` | [NOT_INSTALLED](../../../../../../../../reference/com/google/android/play/core/aipacks/model/AiPackStatus.html#NOT_INSTALLED) The AI pack is not installed. |\n| `int` | [PENDING](../../../../../../../../reference/com/google/android/play/core/aipacks/model/AiPackStatus.html#PENDING) The AI pack download is pending and will be processed soon. |\n| `int` | [REQUIRES_USER_CONFIRMATION](../../../../../../../../reference/com/google/android/play/core/aipacks/model/AiPackStatus.html#REQUIRES_USER_CONFIRMATION) The AI pack requires user consent to be downloaded. |\n| `int` | [TRANSFERRING](../../../../../../../../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. |\n| `int` | [UNKNOWN](../../../../../../../../reference/com/google/android/play/core/aipacks/model/AiPackStatus.html#UNKNOWN) The AI pack state is unknown. |\n| `int` | [WAITING_FOR_WIFI](../../../../../../../../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. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| 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)`\u003c? extends `[Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)`\u003e` | ` 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() ` | ||\n\nConstants\n---------\n\n### CANCELED\n\n```\npublic static final int CANCELED\n```\n\nThe AI pack download has been canceled by the user through the Play Store or the download\nnotification.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n6\n(0x00000006)\n\n\n### COMPLETED\n\n```\npublic static final int COMPLETED\n```\n\nThe AI pack download and transfer is complete; the AI packs are available to the app.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n4\n(0x00000004)\n\n\n### DOWNLOADING\n\n```\npublic static final int DOWNLOADING\n```\n\nThe AI pack download is in progress.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n2\n(0x00000002)\n\n\n### FAILED\n\n```\npublic static final int FAILED\n```\n\nThe AI pack download or transfer has failed.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n5\n(0x00000005)\n\n\n### NOT_INSTALLED\n\n```\npublic static final int NOT_INSTALLED\n```\n\nThe AI pack is not installed.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n8\n(0x00000008)\n\n\n### PENDING\n\n```\npublic static final int PENDING\n```\n\nThe AI pack download is pending and will be processed soon.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)\n\n\n### REQUIRES_USER_CONFIRMATION\n\n```\npublic static final int REQUIRES_USER_CONFIRMATION\n```\n\nThe AI pack requires user consent to be downloaded.\n\nThis can happen if the current app version was not installed by Play.\n\nIf the AI pack is also waiting for Wi-Fi, this state takes precedence.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n9\n(0x00000009)\n\n\n### TRANSFERRING\n\n```\npublic static final int TRANSFERRING\n```\n\nThe AI pack is being decompressed and copied (or patched) to the app's internal storage.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n3\n(0x00000003)\n\n\n### UNKNOWN\n\n```\npublic static final int UNKNOWN\n```\n\nThe AI pack state is unknown.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n0\n(0x00000000)\n\n\n### WAITING_FOR_WIFI\n\n```\npublic static final int WAITING_FOR_WIFI\n```\n\nThe AI pack download is waiting for Wi-Fi to become available before proceeding.\n\nThe app can ask the user to download a session that is waiting for Wi-Fi over cellular data\nby using [AiPackManager.showConfirmationDialog(ActivityResultLauncher)](../../../../../../../../reference/com/google/android/play/core/aipacks/AiPackManager.html#showConfirmationDialog(androidx.activity.result.ActivityResultLauncher\u003candroidx.activity.result.IntentSenderRequest\u003e)).\n\n\u003cbr /\u003e\n\nConstant Value:\n\n7\n(0x00000007)"]]