Google. Play. AssetDelivery
Summary
Enumerations | |
---|---|
AssetDeliveryErrorCode{ | enum Errors that can be encountered while interacting with asset packs. |
AssetDeliveryStatus{ | enum Enum indicating the current status of an asset pack request. |
AssetPackUpdateAvailability{ | enum Enum indicating the availability of a newer version of a particular asset pack. |
ConfirmationDialogResult{ | enum User response to a Play controlled confirmation dialog. |
Classes | |
---|---|
Google. | Wraps Play Core's AssetLocation which represents the location of an Asset within an asset pack on disk. |
Google. | A CustomYieldInstruction used to monitor the asynchronous retrieval of an asset pack containing an AssetBundle. |
Google. | Provides methods for retrieving asset packs via the Play Asset Delivery system. |
Google. | A CustomYieldInstruction used to monitor the asynchronous retrieval of a batch of asset packs. |
Google. | Download information about a particular asset pack. |
Google. | A CustomYieldInstruction used to monitor the asynchronous retrieval of an asset pack. |
Enumerations
AssetDeliveryErrorCode
AssetDeliveryErrorCode
Errors that can be encountered while interacting with asset packs.
Properties | |
---|---|
AccessDenied | Download not permitted under current device circumstances, for example the app is running in the background. |
AppNotOwned | The app isn't owned by any user on this device. An app is "owned" if it has been acquired from the Play Store. |
AppUnavailable | The requesting app is unavailable. This could be caused by multiple reasons:
|
AssetBundleLoadingError | AssetBundle failed to load. |
BundleUnavailable | The requested asset pack is unavailable. |
Canceled | The download was cancelled, likely by the user cancelling the download notification. |
ConfirmationNotRequired | Returned if PlayAssetDelivery.ShowConfirmationDialog is called but no asset packs are waiting for user confirmation. |
InsufficientStorage | Asset pack installation failed due to insufficient storage. |
InternalError | Unknown error retrieving asset pack. |
NetworkError | Network error. Unable to obtain asset pack details. |
NetworkUnrestricted | Returned if PlayAssetDelivery.ShowCellularDataConfirmation is called but no asset packs are waiting for Wi-Fi. |
NoError | No error has occurred. |
PlayStoreNotFound | The Play Store app is either not installed or not the official version. |
UnrecognizedInstallation | Returned if the app was not installed by Play. |
AssetDeliveryStatus
AssetDeliveryStatus
Enum indicating the current status of an asset pack request.
Properties | |
---|---|
Available | Asset pack is available on disk. For PlayAssetPackRequests this indicates that the request is complete. |
Failed | Asset pack retrieval has failed. |
Loaded | Contained AssetBundle has finished loading, assets can now be loaded. For PlayAssetBundleRequests this indicates that the request is complete. |
Loading | Contained AssetBundle is being loaded. |
Pending | Asset pack download is pending and will be processed soon. |
RequiresUserConfirmation | Asset pack download is paused until the user provides consent. Consent can be obtained by presenting a dialog with PlayAssetDelivery.ShowConfirmationDialog. |
Retrieving | Asset pack is being downloaded and transferred to the app's storage. |
WaitingForWifi | Asset pack download is paused until the device acquires wifi, or the user confirms a dialog presented with PlayAssetDelivery.ShowCellularDataConfirmation. |
AssetPackUpdateAvailability
AssetPackUpdateAvailability
Enum indicating the availability of a newer version of a particular asset pack.
ConfirmationDialogResult
ConfirmationDialogResult
User response to a Play controlled confirmation dialog.
Properties | |
---|---|
Accepted | The dialog was confirmed. |
Denied | The dialog was cancelled. |