// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. namespace Google.Play.AssetDelivery { /// /// Errors that can be encountered while interacting with asset packs. /// public enum AssetDeliveryErrorCode { /// /// No error has occurred. /// NoError = 0, /// /// 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. /// /// /// /// AppUnavailable = 1, /// /// The requested asset pack is unavailable. /// BundleUnavailable = 2, /// /// Network error. Unable to obtain asset pack details. /// NetworkError = 3, /// /// Download not permitted under current device circumstances, for example the app is running in the background. /// AccessDenied = 4, /// /// Asset pack installation failed due to insufficient storage. /// InsufficientStorage = 7, /// /// AssetBundle failed to load. /// AssetBundleLoadingError = 8, /// /// The download was cancelled, likely by the user cancelling the download notification. /// Canceled = 9, /// /// Unknown error retrieving asset pack. /// InternalError = 10, /// /// The Play Store app is either not installed or not the official version. /// PlayStoreNotFound = 11, /// /// Returned if is called but /// no asset packs are waiting for Wi-Fi. /// NetworkUnrestricted = 12, /// /// The app isn't owned by any user on this device. An app is "owned" if it has been /// acquired from the Play Store. /// AppNotOwned = 13, /// /// Returned if is called but /// no asset packs are waiting for user confirmation. /// ConfirmationNotRequired = 14, /// /// Returned if the app was not installed by Play. /// UnrecognizedInstallation = 15, } }