public class SKPaymentQueue extends NSObject
Modifier and Type | Method and Description |
---|---|
void |
addPayment(SKPayment payment)
Adds the specified payment request to the queue.
|
void |
addTransactionObserver(SKPaymentTransactionObserver observer)
Adds the specified SKPaymentTransactionObserver to the queue.
|
static boolean |
canMakePayments()
Returns a Boolean that defines whether payments are allowed or not.
|
static SKPaymentQueue |
defaultQueue()
Returns the singleton instance of the queue.
|
void |
finishTransaction(SKPaymentTransaction transaction)
Finishes the specified payment transaction.
|
void |
removeTransactionObserver(SKPaymentTransactionObserver observer)
Removes the specified SKPaymentTransactionObserver from the queue.
|
void |
restoreCompletedTransactions()
Requests to restore previously completed purchases.
|
List<SKPaymentTransaction> |
transactions()
Returns the list of the transactions.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public static boolean canMakePayments()
public static SKPaymentQueue defaultQueue()
public void addTransactionObserver(SKPaymentTransactionObserver observer)
observer
- The specified SKPaymentTransactionObserver to be added to
the queue.public void removeTransactionObserver(SKPaymentTransactionObserver observer)
observer
- The specified SKPaymentTransactionObserver to be removed
from the queue.public List<SKPaymentTransaction> transactions()
public void addPayment(SKPayment payment)
payment
- The payment to be added to the queue.public void finishTransaction(SKPaymentTransaction transaction)
transaction
- The payment transaction to be finished.public void restoreCompletedTransactions()
Copyright © 2020. All rights reserved.