pub unsafe trait SKPaymentTransactionObserver: NSObjectProtocol {
// Provided methods
unsafe fn paymentQueue_updatedTransactions(
&self,
queue: &SKPaymentQueue,
transactions: &NSArray<SKPaymentTransaction>,
)
where Self: Sized + Message { ... }
unsafe fn paymentQueue_removedTransactions(
&self,
queue: &SKPaymentQueue,
transactions: &NSArray<SKPaymentTransaction>,
)
where Self: Sized + Message { ... }
unsafe fn paymentQueue_restoreCompletedTransactionsFailedWithError(
&self,
queue: &SKPaymentQueue,
error: &NSError,
)
where Self: Sized + Message { ... }
unsafe fn paymentQueueRestoreCompletedTransactionsFinished(
&self,
queue: &SKPaymentQueue,
)
where Self: Sized + Message { ... }
unsafe fn paymentQueue_updatedDownloads(
&self,
queue: &SKPaymentQueue,
downloads: &NSArray<SKDownload>,
)
where Self: Sized + Message { ... }
unsafe fn paymentQueue_shouldAddStorePayment_forProduct(
&self,
queue: &SKPaymentQueue,
payment: &SKPayment,
product: &SKProduct,
) -> bool
where Self: Sized + Message { ... }
unsafe fn paymentQueueDidChangeStorefront(&self, queue: &SKPaymentQueue)
where Self: Sized + Message { ... }
unsafe fn paymentQueue_didRevokeEntitlementsForProductIdentifiers(
&self,
queue: &SKPaymentQueue,
product_identifiers: &NSArray<NSString>,
)
where Self: Sized + Message { ... }
}👎Deprecated:
Use StoreKit 2 Transaction APIs
Available on crate feature
SKPaymentQueue only.Expand description
Provided Methods§
unsafe fn paymentQueue_updatedTransactions( &self, queue: &SKPaymentQueue, transactions: &NSArray<SKPaymentTransaction>, )
👎Deprecated:
Use StoreKit 2 Transaction APIs
Available on crate feature
SKPaymentTransaction only.unsafe fn paymentQueue_removedTransactions( &self, queue: &SKPaymentQueue, transactions: &NSArray<SKPaymentTransaction>, )
👎Deprecated:
Use StoreKit 2 Transaction APIs
Available on crate feature
SKPaymentTransaction only.unsafe fn paymentQueue_restoreCompletedTransactionsFailedWithError( &self, queue: &SKPaymentQueue, error: &NSError, )
👎Deprecated:
Use AppStore.sync()
unsafe fn paymentQueueRestoreCompletedTransactionsFinished( &self, queue: &SKPaymentQueue, )
👎Deprecated:
Use AppStore.sync()
unsafe fn paymentQueue_updatedDownloads( &self, queue: &SKPaymentQueue, downloads: &NSArray<SKDownload>, )
👎Deprecated:
Hosted content is no longer supported
Available on crate feature
SKDownload only.unsafe fn paymentQueue_shouldAddStorePayment_forProduct( &self, queue: &SKPaymentQueue, payment: &SKPayment, product: &SKProduct, ) -> bool
👎Deprecated:
Use PurchaseIntent.intents
Available on crate features
SKPayment and SKProduct only.unsafe fn paymentQueueDidChangeStorefront(&self, queue: &SKPaymentQueue)
👎Deprecated:
Use Storefront.updates
unsafe fn paymentQueue_didRevokeEntitlementsForProductIdentifiers( &self, queue: &SKPaymentQueue, product_identifiers: &NSArray<NSString>, )
👎Deprecated:
Use Transaction.updates
Trait Implementations§
impl<T> ImplementedBy<T> for dyn SKPaymentTransactionObserver
Source§impl ProtocolType for dyn SKPaymentTransactionObserver
impl ProtocolType for dyn SKPaymentTransactionObserver
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".