Class SKPaymentQueue

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class SKPaymentQueue
extends NSObject
  • Constructor Details

    • SKPaymentQueue

      public SKPaymentQueue()
    • SKPaymentQueue

      protected SKPaymentQueue​(NSObject.Handle h, long handle)
    • SKPaymentQueue

      protected SKPaymentQueue​(NSObject.SkipInit skipInit)
  • Method Details

    • getDelegate

      public SKPaymentQueueDelegate getDelegate()
      Since:
      Available in iOS 13.0 and later.
    • setDelegate

      public void setDelegate​(SKPaymentQueueDelegate v)
      Since:
      Available in iOS 13.0 and later.
    • getStorefront

      public SKStorefront getStorefront()
      Since:
      Available in iOS 13.0 and later.
    • getTransactionObservers

      public NSArray<?> getTransactionObservers()
      Since:
      Available in iOS 14.0 and later.
    • getTransactions

      public NSArray<SKPaymentTransaction> getTransactions()
    • addPayment

      public void addPayment​(SKPayment payment)
    • restoreCompletedTransactions

      public void restoreCompletedTransactions()
    • restoreCompletedTransactions

      public void restoreCompletedTransactions​(String username)
    • finishTransaction

      public void finishTransaction​(SKPaymentTransaction transaction)
    • startDownloads

      public void startDownloads​(NSArray<SKDownload> downloads)
    • pauseDownloads

      public void pauseDownloads​(NSArray<SKDownload> downloads)
    • resumeDownloads

      public void resumeDownloads​(NSArray<SKDownload> downloads)
    • cancelDownloads

      public void cancelDownloads​(NSArray<SKDownload> downloads)
    • addTransactionObserver

      public void addTransactionObserver​(SKPaymentTransactionObserver observer)
    • removeTransactionObserver

      public void removeTransactionObserver​(SKPaymentTransactionObserver observer)
    • showPriceConsentIfNeeded

      public void showPriceConsentIfNeeded()
      Since:
      Available in iOS 13.4 and later.
    • presentCodeRedemptionSheet

      public void presentCodeRedemptionSheet()
      Since:
      Available in iOS 14.0 and later.
    • getDefaultQueue

      public static SKPaymentQueue getDefaultQueue()
    • canMakePayments

      public static boolean canMakePayments()