Interface ISN_iSKPaymentTransactionObserver
A set of methods that process transactions, unlock purchased functionality, and continue promoted in-app purchases.
Namespace: SA.iOS.StoreKit
Assembly: cs.temp.dll.dll
Syntax
public interface ISN_iSKPaymentTransactionObserver
Methods
DidChangeStorefront()
Tells the observer that the storefront for the payment queue has changed.
Declaration
void DidChangeStorefront()
OnRestoreTransactionsComplete(SA_Result)
Tells the observer that the payment queue has finished sending restored transactions.
This method is called after all restartable transactions have been processed by the payment queue. Your application is not required to do anything in this method.
Declaration
void OnRestoreTransactionsComplete(SA_Result result)
Parameters
Type | Name | Description |
---|---|---|
SA_Result | result |
OnShouldAddStorePayment(ISN_SKProduct)
Tells the observer that a user initiated an in-app purchase from the App Store.
Return true to continue the transaction in your app. Return false to defer or cancel the transaction. If you return false, you can continue the transaction later using requetsed ISN_SKProduct
Declaration
bool OnShouldAddStorePayment(ISN_SKProduct product)
Parameters
Type | Name | Description |
---|---|---|
ISN_SKProduct | product |
Returns
Type | Description |
---|---|
System.Boolean |
OnTransactionRemoved(ISN_iSKPaymentTransaction)
Tells an observer that one or more transactions have been removed from the queue.
Your application does not typically need to anything on this event, but it may be used to update user interface to reflect that a transaction has been completed.
Declaration
void OnTransactionRemoved(ISN_iSKPaymentTransaction result)
Parameters
Type | Name | Description |
---|---|---|
ISN_iSKPaymentTransaction | result |
OnTransactionUpdated(ISN_iSKPaymentTransaction)
Tells an observer that one or more transactions have been updated.
Declaration
void OnTransactionUpdated(ISN_iSKPaymentTransaction result)
Parameters
Type | Name | Description |
---|---|---|
ISN_iSKPaymentTransaction | result |