Google.Play.AssetDelivery

Summary

Enumerations

AssetDeliveryErrorCode{
  NoError = 0,
  AppUnavailable = 1,
  BundleUnavailable = 2,
  NetworkError = 3,
  AccessDenied = 4,
  InsufficientStorage = 7,
  AssetBundleLoadingError = 8,
  Canceled = 9,
  InternalError = 10,
  PlayStoreNotFound = 11,
  NetworkUnrestricted = 12,
  AppNotOwned = 13,
  ConfirmationNotRequired = 14,
  UnrecognizedInstallation = 15
}
enum
Errors that can be encountered while interacting with asset packs.
AssetDeliveryStatus{
  Pending = 0,
  Retrieving = 1,
  Available = 2,
  Loading = 3,
  Loaded = 4,
  Failed = 5,
  WaitingForWifi = 6,
  RequiresUserConfirmation = 7
}
enum
Enum indicating the current status of an asset pack request.
AssetPackUpdateAvailability{
  Unknown = 0,
  UpdateNotAvailable = 1,
  UpdateAvailable = 2
}
enum
Enum indicating the availability of a newer version of a particular asset pack.
ConfirmationDialogResult{
  Accepted = 1,
  Denied = 2
}
enum
User response to a Play controlled confirmation dialog.

Classes

Google.Play.AssetDelivery.AssetLocation

Wraps Play Core's AssetLocation which represents the location of an Asset within an asset pack on disk.

Google.Play.AssetDelivery.PlayAssetBundleRequest

A CustomYieldInstruction used to monitor the asynchronous retrieval of an asset pack containing an AssetBundle.

Google.Play.AssetDelivery.PlayAssetDelivery

Provides methods for retrieving asset packs via the Play Asset Delivery system.

Google.Play.AssetDelivery.PlayAssetPackBatchRequest

A CustomYieldInstruction used to monitor the asynchronous retrieval of a batch of asset packs.

Google.Play.AssetDelivery.PlayAssetPackDownloadInfo

Download information about a particular asset pack.

Google.Play.AssetDelivery.PlayAssetPackRequest

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:

  • The app isn't published in the Play Store.
  • The app version code isn't published in the Play Store. Note: an older version may exist.
  • The app is only available on a testing track that the user doesn't have access to.

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.

Properties
Unknown

The asset pack update availability is unknown.

UpdateAvailable

The asset pack can be updated to a newer version.

UpdateNotAvailable

The asset pack is already at the latest version; there's no update available.

ConfirmationDialogResult

 ConfirmationDialogResult

User response to a Play controlled confirmation dialog.

Properties
Accepted

The dialog was confirmed.

Denied

The dialog was cancelled.