Class SKPaymentQueue

  • All Implemented Interfaces:
    NSObject

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

      • SKPaymentQueue

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

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

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

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

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

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

        @NotNull
        public static @NotNull SKPaymentQueue defaultQueue()
        API-Since: 3.0
      • 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • 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​(@NotNull
                               @NotNull 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. API-Since: 3.0
      • addTransactionObserver

        public void addTransactionObserver​(@NotNull
                                           @NotNull 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. API-Since: 3.0
      • cancelDownloads

        @Deprecated
        public void cancelDownloads​(@NotNull
                                    @NotNull NSArray<? extends SKDownload> downloads)
        Deprecated.
        Asynchronous. Cancel downloads (SKDownload) API-Since: 6.0 Deprecated-Since: 16.0 Deprecated-Message: Hosted content is no longer supported
      • finishTransaction

        public void finishTransaction​(@NotNull
                                      @NotNull 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. API-Since: 3.0
      • pauseDownloads

        @Deprecated
        public void pauseDownloads​(@NotNull
                                   @NotNull NSArray<? extends SKDownload> downloads)
        Deprecated.
        Asynchronous. Pause/resume downloads (SKDownload). API-Since: 6.0 Deprecated-Since: 16.0 Deprecated-Message: Hosted content is no longer supported
      • removeTransactionObserver

        public void removeTransactionObserver​(@NotNull
                                              @NotNull SKPaymentTransactionObserver observer)
        API-Since: 3.0
      • 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. API-Since: 3.0
      • restoreCompletedTransactionsWithApplicationUsername

        public void restoreCompletedTransactionsWithApplicationUsername​(@Nullable
                                                                        @Nullable java.lang.String username)
        API-Since: 7.0
      • resumeDownloads

        @Deprecated
        public void resumeDownloads​(@NotNull
                                    @NotNull NSArray<? extends SKDownload> downloads)
        Deprecated.
        API-Since: 6.0 Deprecated-Since: 16.0 Deprecated-Message: Hosted content is no longer supported
      • startDownloads

        @Deprecated
        public void startDownloads​(@NotNull
                                   @NotNull NSArray<? extends SKDownload> downloads)
        Deprecated.
        Asynchronous. Start the given downloads (SKDownload). API-Since: 6.0 Deprecated-Since: 16.0 Deprecated-Message: Hosted content is no longer supported
      • transactions

        @NotNull
        public @NotNull NSArray<? extends SKPaymentTransaction> transactions()
        Array of unfinished SKPaymentTransactions. Only valid while the queue has observers. Updated asynchronously. API-Since: 3.0
      • setDelegate_unsafe

        public void setDelegate_unsafe​(@Nullable
                                       @Nullable SKPaymentQueueDelegate value)
        API-Since: 13.0
      • storefront

        @Nullable
        public @Nullable SKStorefront storefront()
        API-Since: 13.0
      • 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. API-Since: 13.4
      • presentCodeRedemptionSheet

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

        @NotNull
        public @NotNull NSArray<?> transactionObservers()
        Array of transactionObservers that are available. Transaction observers are not retained. API-Since: 14.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.