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
}
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
}
enum
Enum indicating the current status of an asset pack request.
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

An object used to monitor the asynchronous retrieval of an asset pack containing an AssetBundle via the Play Asset Delivery system.

Google.Play.AssetDelivery.PlayAssetDelivery

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

Google.Play.AssetDelivery.PlayAssetPackBatchRequest

An object used to monitor the asynchronous retrieval of a batch of asset packs via the Play Asset Delivery system.

Google.Play.AssetDelivery.PlayAssetPackRequest

An object used to monitor the asynchronous retrieval of an asset pack via the Play Asset Delivery system.

Enumerations

AssetDeliveryErrorCode

 AssetDeliveryErrorCode

Errors that can be encountered while interacting with asset packs.

Properties
AccessDenied

Download not permitted under current device circumstances (e.g.

in background).

AppNotOwned

The app is not owned by any user on this device.

An app is "owned" if it has been acquired from Play.

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 user doesn't own the app, i.e. hasn't installed it in the Play Store.
  • The user doesn't have access to the app, e.g. alpha track.

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.

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.

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.

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.

ConfirmationDialogResult

 ConfirmationDialogResult

User response to a Play controlled confirmation dialog.

Properties
Accepted

The dialog was confirmed.

Denied

The dialog was cancelled.