Skip to main content

SKPaymentQueueDelegate

Trait SKPaymentQueueDelegate 

Source
pub unsafe trait SKPaymentQueueDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn paymentQueue_shouldContinueTransaction_inStorefront(
        &self,
        payment_queue: &SKPaymentQueue,
        transaction: &SKPaymentTransaction,
        new_storefront: &SKStorefront,
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn paymentQueueShouldShowPriceConsent(
        &self,
        payment_queue: &SKPaymentQueue,
    ) -> bool
       where Self: Sized + Message { ... }
}
👎Deprecated:

No longer supported

Available on crate feature SKPaymentQueue only.
Expand description

Provided Methods§

Source

unsafe fn paymentQueue_shouldContinueTransaction_inStorefront( &self, payment_queue: &SKPaymentQueue, transaction: &SKPaymentTransaction, new_storefront: &SKStorefront, ) -> bool
where Self: Sized + Message,

👎Deprecated:

Pass Product.PurchaseOption.onStorefrontChange(shouldContinuePurchase:) to product.purchase(options:)

Available on crate features SKPaymentTransaction and SKStorefront only.
Source

unsafe fn paymentQueueShouldShowPriceConsent( &self, payment_queue: &SKPaymentQueue, ) -> bool
where Self: Sized + Message,

👎Deprecated:

Use Message.messages and Message.display(in:)

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn SKPaymentQueueDelegate

Source§

impl ProtocolType for dyn SKPaymentQueueDelegate

Source§

const NAME: &'static str = "SKPaymentQueueDelegate"

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> SKPaymentQueueDelegate for ProtocolObject<T>

Implementors§