ios constant

Map<ErrorCode, int> const ios

Implementation

static const Map<ErrorCode, int> ios = {
  // OpenIAP standard error codes
  ErrorCode.Unknown: 0,
  ErrorCode.UserCancelled: 2,
  ErrorCode.NetworkError: 1,
  ErrorCode.ItemUnavailable: 3,
  ErrorCode.ServiceError: 4,
  ErrorCode.ReceiptFailed: 5,
  ErrorCode.AlreadyOwned: 6,
  ErrorCode.RemoteError: 10,
  ErrorCode.ReceiptFinished: 11,
  ErrorCode.Pending: 12,
  ErrorCode.NotEnded: 13,
  ErrorCode.DeveloperError: 14,
  // Legacy codes for compatibility
  ErrorCode.ReceiptFinishedFailed: 15,
  ErrorCode.PurchaseError: 16,
  ErrorCode.SyncError: 17,
  ErrorCode.DeferredPayment: 18,
  ErrorCode.TransactionValidationFailed: 19,
  ErrorCode.NotPrepared: 20,
  ErrorCode.BillingResponseJsonParseError: 21,
  ErrorCode.Interrupted: 22,
  ErrorCode.IapNotAvailable: 23,
  ErrorCode.ActivityUnavailable: 24,
  ErrorCode.AlreadyPrepared: 25,
  ErrorCode.ConnectionClosed: 26,
};