Package apple.storekit.protocol
Interface SKPaymentTransactionObserver
-
public interface SKPaymentTransactionObserver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidpaymentQueueDidChangeStorefront(SKPaymentQueue queue)default voidpaymentQueueDidRevokeEntitlementsForProductIdentifiers(SKPaymentQueue queue, NSArray<java.lang.String> productIdentifiers)Sent when entitlements for a user have changed and access to the specified IAPs has been revoked.default voidpaymentQueueRemovedTransactions(SKPaymentQueue queue, NSArray<? extends SKPaymentTransaction> transactions)Sent when transactions are removed from the queue (via finishTransaction:).default voidpaymentQueueRestoreCompletedTransactionsFailedWithError(SKPaymentQueue queue, NSError error)Sent when an error is encountered while adding transactions from the user's purchase history back to the queue.default voidpaymentQueueRestoreCompletedTransactionsFinished(SKPaymentQueue queue)Sent when all transactions from the user's purchase history have successfully been added back to the queue.default booleanpaymentQueueShouldAddStorePaymentForProduct(SKPaymentQueue queue, SKPayment payment, SKProduct product)Sent when a user initiates an IAP buy from the App Storedefault voidpaymentQueueUpdatedDownloads(SKPaymentQueue queue, NSArray<? extends SKDownload> downloads)Sent when the download state has changed.voidpaymentQueueUpdatedTransactions(SKPaymentQueue queue, NSArray<? extends SKPaymentTransaction> transactions)Sent when the transaction array has changed (additions or state changes).
-
-
-
Method Detail
-
paymentQueueRemovedTransactions
default void paymentQueueRemovedTransactions(SKPaymentQueue queue, NSArray<? extends SKPaymentTransaction> transactions)
Sent when transactions are removed from the queue (via finishTransaction:).
-
paymentQueueRestoreCompletedTransactionsFailedWithError
default void paymentQueueRestoreCompletedTransactionsFailedWithError(SKPaymentQueue queue, NSError error)
Sent when an error is encountered while adding transactions from the user's purchase history back to the queue.
-
paymentQueueUpdatedDownloads
default void paymentQueueUpdatedDownloads(SKPaymentQueue queue, NSArray<? extends SKDownload> downloads)
Sent when the download state has changed.
-
paymentQueueUpdatedTransactions
void paymentQueueUpdatedTransactions(SKPaymentQueue queue, NSArray<? extends SKPaymentTransaction> transactions)
Sent when the transaction array has changed (additions or state changes). Client should check state of transactions and finish as appropriate.
-
paymentQueueRestoreCompletedTransactionsFinished
default void paymentQueueRestoreCompletedTransactionsFinished(SKPaymentQueue queue)
Sent when all transactions from the user's purchase history have successfully been added back to the queue.
-
paymentQueueShouldAddStorePaymentForProduct
default boolean paymentQueueShouldAddStorePaymentForProduct(SKPaymentQueue queue, SKPayment payment, SKProduct product)
Sent when a user initiates an IAP buy from the App Store
-
paymentQueueDidChangeStorefront
default void paymentQueueDidChangeStorefront(SKPaymentQueue queue)
-
paymentQueueDidRevokeEntitlementsForProductIdentifiers
default void paymentQueueDidRevokeEntitlementsForProductIdentifiers(SKPaymentQueue queue, NSArray<java.lang.String> productIdentifiers)
Sent when entitlements for a user have changed and access to the specified IAPs has been revoked.
-
-