Edit

Share via


SKPaymentTransactionObserver.ShouldAddStorePayment Method

Definition

Called to indicate that the user has started an in-app App Store purchase.

[Foundation.Export("paymentQueue:shouldAddStorePayment:forProduct:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldAddStorePayment (StoreKit.SKPaymentQueue queue, StoreKit.SKPayment payment, StoreKit.SKProduct product);
abstract member ShouldAddStorePayment : StoreKit.SKPaymentQueue * StoreKit.SKPayment * StoreKit.SKProduct -> bool
override this.ShouldAddStorePayment : StoreKit.SKPaymentQueue * StoreKit.SKPayment * StoreKit.SKProduct -> bool

Parameters

queue
SKPaymentQueue

The payment queue on which the payment was made.

payment
SKPayment

The payment.

product
SKProduct

The product that was paid for.

Returns

Attributes

Applies to