iOS Developer Library

Developer

StoreKit Framework Reference StoreKit Constants Reference

Options
Deployment Target:

On This Page
Language:

StoreKit Constants Reference

This document describes the constants defined in the Store Kit framework and not described in a document for an individual class.

Constants

  • This constant defines the Store Kit framework error domain.

    Declaration

    Swift

    let SKErrorDomain: String

    Objective-C

    NSString * const SKErrorDomain;

    Constants

    • SKErrorDomain

      SKErrorDomain

      Indicates an error occurred in Store Kit.

      Available in iOS 3.0 and later.

  • Error codes for the Store Kit error domain.

    Declaration

    Swift

    enum SKErrorCode : Int { case Unknown case ClientInvalid case PaymentCancelled case PaymentInvalid case PaymentNotAllowed case StoreProductNotAvailable case CloudServicePermissionDenied case CloudServiceNetworkConnectionFailed }

    Objective-C

    enum { SKErrorUnknown, SKErrorClientInvalid, SKErrorPaymentCancelled, SKErrorPaymentInvalid, SKErrorPaymentNotAllowed, SKErrorStoreProductNotAvailable, SKErrorCloudServicePermissionDenied, SKErrorCloudServiceNetworkConnectionFailed };

    Constants

    • Unknown

      SKErrorUnknown

      Indicates that an unknown or unexpected error occurred.

      Available in iOS 3.0 and later.

    • ClientInvalid

      SKErrorClientInvalid

      Indicates that the client is not allowed to perform the attempted action.

      Available in iOS 3.0 and later.

    • PaymentCancelled

      SKErrorPaymentCancelled

      Indicates that the user cancelled a payment request.

      Available in iOS 3.0 and later.

    • PaymentInvalid

      SKErrorPaymentInvalid

      Indicates that one of the payment parameters was not recognized by the Apple App Store.

      Available in iOS 3.0 and later.

    • PaymentNotAllowed

      SKErrorPaymentNotAllowed

      Indicates that the user is not allowed to authorize payments.

      Available in iOS 3.0 and later.

    • StoreProductNotAvailable

      SKErrorStoreProductNotAvailable

      Indicates that the requested product is not available in the store.

      Available in iOS 6.0 and later.

    • CloudServicePermissionDenied

      SKErrorCloudServicePermissionDenied

      Indicates that the user has not allowed access to Cloud service information.

      Available in iOS 9.3 and later.

    • CloudServiceNetworkConnectionFailed

      SKErrorCloudServiceNetworkConnectionFailed

      Indicates that the device could not connect to the nework.

      Available in iOS 9.3 and later.