Enumerations
Here is a list of enumerations you will find throughout the plugin. These enumerations are named after the same enumerations/constants found within the Asset Delivery SDK.
EAssetPackStatus
Name | Description |
---|---|
ASSET_PACK_STATUS_UNKNOWN | The asset pack state is unknown. |
ASSET_PACK_STATUS_PENDING | The asset pack download is pending and will be processed soon. |
ASSET_PACK_STATUS_DOWNLOADING | The asset pack download is in progress. |
ASSET_PACK_STATUS_TRANSFERRING | The asset pack is being decompressed and copied (or patched) to the app's internal storage. |
ASSET_PACK_STATUS_COMPLETED | The asset pack download and transfer is complete; the assets are available to the app provided it has been mounted. |
ASSET_PACK_STATUS_FAILED | The asset pack download or transfer has failed. |
ASSET_PACK_STATUS_CANCELED | The asset pack download has been canceled by the user through the Play Store or the download notification. |
ASSET_PACK_STATUS_WAITING_FOR_WIFI | The asset pack download is waiting for Wi-Fi to become available before proceeding. |
ASSET_PACK_STATUS_NOT_INSTALLED | The asset pack is not installed. |
ASSET_PACK_STATUS_REQUIRES_USER_CONFIRMATION | The asset pack requires user consent to be downloaded. This can happen if the current app version was not installed by Play. If the asset pack is also waiting for WIFI, this state takes precedence. |
EConfirmationStatus
Name | Description |
---|---|
CONFIRMATION_STATUS_CANCELED | The confirmation dialog was denied or dismissed. |
CONFIRMATION_STATUS_ACCEPTED | The confirmation dialog was approved. |
CONFIRMATION_STATUS_FAILURE | Something went wrong when attempting to retrieve confirmation. |
EAssetPackErrorCode
Name | Description |
---|---|
ASSET_PACK_ERROR_NO_ERROR | No Error. |
ASSET_PACK_ERROR_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 or The user doesn't have access to the app. |
ASSET_PACK_ERROR_PACK_UNAVAILABLE | The requested asset pack isn't available. This can happen if the asset pack wasn't included in the Android App Bundle that was published to the Play Store. |
ASSET_PACK_ERROR_INVALID_REQUEST | The request is invalid. |
ASSET_PACK_ERROR_DOWNLOAD_NOT_FOUND | The requested download isn't found. |
ASSET_PACK_ERROR_API_NOT_AVAILABLE | The Asset Delivery API isn't available. |
ASSET_PACK_ERROR_NETWORK_ERROR | Network error. Unable to obtain the asset pack details. |
ASSET_PACK_ERROR_ACCESS_DENIED | Download not permitted under the current device circumstances. |
ASSET_PACK_ERROR_INSUFFICIENT_STORAGE | Asset pack download failed due to insufficient storage. |
ASSET_PACK_ERROR_PLAY_STORE_NOT_FOUND | The Play Store app is either not installed or not the official version. |
ASSET_PACK_ERROR_NETWORK_UNRESTRICTED | State when "Show Confirmation Dialog" is called but no asset packs are waiting for WIFI. |
ASSET_PACK_ERROR_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. |
ASSET_PACK_ERROR_CONFIRMATION_NOT_REQUIRED | Returned if "Show Confirmation Dialog" is called but no asset packs require user confirmation. |
ASSET_PACK_ERROR_UNRECOGNIZED_INSTALLATION | The installed app version is not recognized by Play. This can happen if the app was not installed by Play. |
ASSET_PACK_ERROR_INTERNAL_ERROR | Unknown error downloading an asset pack. |