// Copyright 2020 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.AppUpdate
{
///
/// In-app update API errors.
///
public enum AppUpdateErrorCode
{
///
/// No error has occurred.
///
NoError = 0,
///
/// No error occurred; however, some update types are allowed and others are disallowed.
///
NoErrorPartiallyAllowed = 1,
///
/// An unknown error has occurred.
///
ErrorUnknown = 2,
///
/// The API isn't available on this device.
///
ErrorApiNotAvailable = 3,
///
/// The request that was sent by the app is malformed.
///
ErrorInvalidRequest = 4,
///
/// The update is unavailable to this user or device.
///
ErrorUpdateUnavailable = 5,
///
/// The update isn't allowed due to the current device state, for example low battery or low disk space.
///
ErrorUpdateNotAllowed = 6,
///
/// The update hasn't been fully downloaded yet.
///
ErrorDownloadNotPresent = 7,
///
/// The update is already in progress and there is no UI flow to resume.
///
ErrorUpdateInProgress = 8,
///
/// An internal error happened in the Play Store.
///
ErrorInternalError = 9,
///
/// The update was cancelled by the user.
///
ErrorUserCanceled = 10,
///
/// The in-app update failed, for example due to an interrupted network connection.
///
ErrorUpdateFailed = 11,
///
/// The Play Store app is either not installed or not the official version.
///
ErrorPlayStoreNotFound = 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.
///
ErrorAppNotOwned = 13,
}
}