SKPaymentTransactionObserver

Trait SKPaymentTransactionObserver 

Source
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§

Source

unsafe fn paymentQueue_updatedTransactions( &self, queue: &SKPaymentQueue, transactions: &NSArray<SKPaymentTransaction>, )
where Self: Sized + Message,

👎Deprecated: Use StoreKit 2 Transaction APIs
Available on crate feature SKPaymentTransaction only.
Source

unsafe fn paymentQueue_removedTransactions( &self, queue: &SKPaymentQueue, transactions: &NSArray<SKPaymentTransaction>, )
where Self: Sized + Message,

👎Deprecated: Use StoreKit 2 Transaction APIs
Available on crate feature SKPaymentTransaction only.
Source

unsafe fn paymentQueue_restoreCompletedTransactionsFailedWithError( &self, queue: &SKPaymentQueue, error: &NSError, )
where Self: Sized + Message,

👎Deprecated: Use AppStore.sync()
Source

unsafe fn paymentQueueRestoreCompletedTransactionsFinished( &self, queue: &SKPaymentQueue, )
where Self: Sized + Message,

👎Deprecated: Use AppStore.sync()
Source

unsafe fn paymentQueue_updatedDownloads( &self, queue: &SKPaymentQueue, downloads: &NSArray<SKDownload>, )
where Self: Sized + Message,

👎Deprecated: Hosted content is no longer supported
Available on crate feature SKDownload only.
Source

unsafe fn paymentQueue_shouldAddStorePayment_forProduct( &self, queue: &SKPaymentQueue, payment: &SKPayment, product: &SKProduct, ) -> bool
where Self: Sized + Message,

👎Deprecated: Use PurchaseIntent.intents
Available on crate features SKPayment and SKProduct only.
Source

unsafe fn paymentQueueDidChangeStorefront(&self, queue: &SKPaymentQueue)
where Self: Sized + Message,

👎Deprecated: Use Storefront.updates
Source

unsafe fn paymentQueue_didRevokeEntitlementsForProductIdentifiers( &self, queue: &SKPaymentQueue, product_identifiers: &NSArray<NSString>, )
where Self: Sized + Message,

👎Deprecated: Use Transaction.updates

Trait Implementations§

Source§

impl ProtocolType for dyn SKPaymentTransactionObserver

Source§

const NAME: &'static str = "SKPaymentTransactionObserver"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn SKPaymentTransactionObserver

Implementations on Foreign Types§

Source§

impl<T> SKPaymentTransactionObserver for ProtocolObject<T>

Implementors§