StoreAccessState
public enum StoreAccessState
Represents the current state of Store Access object. This is an extended version of SKPaymentTransactionState.
-
Unknown (initial) state
Declaration
Swift
case unknown
-
Store access is requesting products from the store.
Declaration
Swift
case requestingProducts
-
Store access has received products from the store.
Declaration
Swift
case receivedProducts
-
A request for products failed.
Declaration
Swift
case requestForProductsFailed(error: Error)Parameters
errorThe error that caused the request to fail.
-
Store access attempting to purchase product.
Declaration
Swift
case purchaseAttempt(productIdentifier: String)Parameters
productIdentifierIdentifier of a product being purchased.
-
Making payments is not allowed for the user
Declaration
Swift
case cannotMakePayments
-
Store access is purchasing product.
Declaration
Swift
case purchasing
-
Store access has purchased product.
Declaration
Swift
case purchased
-
Store access is restoring previous purchases.
Declaration
Swift
case restoringPurchases
-
Store access has restored previous purchases.
Declaration
Swift
case restored
-
Purchase of a product failed.
Declaration
Swift
case purchaseFailed(skError: SKError?)Parameters
skErrorAn object describing the error that occurred while purchasing product.
-
Processing product purchase. For more information please check out: https://developer.apple.com/documentation/storekit/skpaymenttransactionstate/1411277-deferred
Declaration
Swift
case purchaseDeferred
View on GitHub
StoreAccessState Enum Reference