Version: 2022.3
LanguageEnglish
  • C#

AndroidAssetPackStatus

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Values that indicate the status of an Android asset pack.

Unity always returns the status value and the error together in AndroidAssetPackInfo or AndroidAssetPackState objects. Unity returns these objects via callback methods after you call either AndroidAssetPacks.DownloadAssetPackAsync or AndroidAssetPacks.GetAssetPackStateAsync. When the status value is AndroidAssetPackStatus.Failed or AndroidAssetPackStatus.Unknown, the error value indicates the cause of the failure. For any other status value, the error value should always be AndroidAssetPackError.NoError. This enum directly wraps the AssetPackStatus values in the PlayCore API. Additional resources: AndroidAssetPackInfo, AndroidAssetPacks.DownloadAssetPackAsync, AndroidAssetPacks.GetAssetPackStateAsync, AndroidAssetPackState.

Properties

UnknownIndicates that the Android asset pack is not available for the application.
PendingIndicates that the Android asset pack status should soon change.
DownloadingIndicates that the device is downloading the Android asset pack.
TransferringIndicates that the device has downloaded the Android asset pack and is unpacking the asset pack to its final location.
CompletedIndicates that the device has downloaded the Android asset pack and the asset pack is available to the application.
FailedIndicates that the device failed to download the Android asset pack.
CanceledIndicates that the Android asset pack download is canceled.
WaitingForWifiIndicates that the device has paused the Android asset pack download until it connects to the WiFi network.
NotInstalledIndicates that the Android asset pack is not installed.