Interface SKPaymentTransactionObserver


  • public interface SKPaymentTransactionObserver
    • Method Detail

      • paymentQueueRemovedTransactions

        default void paymentQueueRemovedTransactions​(@NotNull
                                                     @NotNull SKPaymentQueue queue,
                                                     @NotNull
                                                     @NotNull NSArray<? extends SKPaymentTransaction> transactions)
        Sent when transactions are removed from the queue (via finishTransaction:). API-Since: 3.0
      • paymentQueueRestoreCompletedTransactionsFailedWithError

        default void paymentQueueRestoreCompletedTransactionsFailedWithError​(@NotNull
                                                                             @NotNull SKPaymentQueue queue,
                                                                             @NotNull
                                                                             @NotNull NSError error)
        Sent when an error is encountered while adding transactions from the user's purchase history back to the queue. API-Since: 3.0
      • paymentQueueUpdatedDownloads

        @Deprecated
        default void paymentQueueUpdatedDownloads​(@NotNull
                                                  @NotNull SKPaymentQueue queue,
                                                  @NotNull
                                                  @NotNull NSArray<? extends SKDownload> downloads)
        Deprecated.
        Sent when the download state has changed. API-Since: 6.0 Deprecated-Since: 16.0 Deprecated-Message: Hosted content is no longer supported
      • paymentQueueUpdatedTransactions

        void paymentQueueUpdatedTransactions​(@NotNull
                                             @NotNull SKPaymentQueue queue,
                                             @NotNull
                                             @NotNull 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. API-Since: 3.0
      • paymentQueueRestoreCompletedTransactionsFinished

        default void paymentQueueRestoreCompletedTransactionsFinished​(@NotNull
                                                                      @NotNull SKPaymentQueue queue)
        Sent when all transactions from the user's purchase history have successfully been added back to the queue. API-Since: 3.0
      • paymentQueueShouldAddStorePaymentForProduct

        default boolean paymentQueueShouldAddStorePaymentForProduct​(@NotNull
                                                                    @NotNull SKPaymentQueue queue,
                                                                    @NotNull
                                                                    @NotNull SKPayment payment,
                                                                    @NotNull
                                                                    @NotNull SKProduct product)
        Sent when a user initiates an IAP buy from the App Store API-Since: 11.0
      • paymentQueueDidChangeStorefront

        default void paymentQueueDidChangeStorefront​(@NotNull
                                                     @NotNull SKPaymentQueue queue)
        API-Since: 13.0
      • paymentQueueDidRevokeEntitlementsForProductIdentifiers

        default void paymentQueueDidRevokeEntitlementsForProductIdentifiers​(@NotNull
                                                                            @NotNull SKPaymentQueue queue,
                                                                            @NotNull
                                                                            @NotNull NSArray<java.lang.String> productIdentifiers)
        Sent when entitlements for a user have changed and access to the specified IAPs has been revoked. API-Since: 14.0