Class SKPaymentQueue

  • All Implemented Interfaces:
    NSObject

    public class SKPaymentQueue
    extends NSObject
    SKPaymentQueue interacts with the server-side payment queue
    • Constructor Detail

      • SKPaymentQueue

        protected SKPaymentQueue​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • canMakePayments

        public static boolean canMakePayments()
        NO if this device is not able or allowed to make payments
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • defaultQueue

        public static java.lang.Object defaultQueue()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • addPayment

        public void addPayment​(SKPayment payment)
        Asynchronous. Add a payment to the server queue. The payment is copied to add an SKPaymentTransaction to the transactions array. The same payment can be added multiple times to create multiple transactions.
      • addTransactionObserver

        public void addTransactionObserver​(SKPaymentTransactionObserver observer)
        Observers are not retained. The transactions array will only be synchronized with the server while the queue has observers. This may require that the user authenticate.
      • cancelDownloads

        public void cancelDownloads​(NSArray<? extends SKDownload> downloads)
        Asynchronous. Cancel downloads (SKDownload)
      • finishTransaction

        public void finishTransaction​(SKPaymentTransaction transaction)
        Asynchronous. Remove a finished (i.e. failed or completed) transaction from the queue. Attempting to finish a purchasing transaction will throw an exception.
      • pauseDownloads

        public void pauseDownloads​(NSArray<? extends SKDownload> downloads)
        Asynchronous. Pause/resume downloads (SKDownload).
      • restoreCompletedTransactions

        public void restoreCompletedTransactions()
        Asynchronous. Will add completed transactions for the current user back to the queue to be re-completed. User will be asked to authenticate. Observers will receive 0 or more -paymentQueue:updatedTransactions:, followed by either -paymentQueueRestoreCompletedTransactionsFinished: on success or -paymentQueue:restoreCompletedTransactionsFailedWithError: on failure. In the case of partial success, some transactions may still be delivered.
      • restoreCompletedTransactionsWithApplicationUsername

        public void restoreCompletedTransactionsWithApplicationUsername​(java.lang.String username)
      • resumeDownloads

        public void resumeDownloads​(NSArray<? extends SKDownload> downloads)
      • startDownloads

        public void startDownloads​(NSArray<? extends SKDownload> downloads)
        Asynchronous. Start the given downloads (SKDownload).
      • transactions

        public NSArray<? extends SKPaymentTransaction> transactions()
        Array of unfinished SKPaymentTransactions. Only valid while the queue has observers. Updated asynchronously.
      • showPriceConsentIfNeeded

        public void showPriceConsentIfNeeded()
        If StoreKit has called your SKPaymentQueueDelegate's "paymentQueueShouldShowPriceConsent:" method and you returned NO, you can use this method to show the price consent UI at a later time that is more appropriate for your app. If there is no pending price consent, this method will do nothing.
      • presentCodeRedemptionSheet

        public void presentCodeRedemptionSheet()
        Call this method to have StoreKit present a sheet enabling the user to redeem codes provided by your app.
      • transactionObservers

        public NSArray<?> transactionObservers()
        Array of transactionObservers that are available. Transaction observers are not retained.