編輯

共用方式為


PKPaymentAuthorizationControllerDelegate.DidSelectShippingMethod Method

Definition

Overloads

DidSelectShippingMethod(PKPaymentAuthorizationController, PKPaymentMethod, Action<PKPaymentRequestPaymentMethodUpdate>)
DidSelectShippingMethod(PKPaymentAuthorizationController, PKShippingMethod, Action<PKPaymentAuthorizationStatus,PKPaymentSummaryItem[]>)

Method that is called when a user selects a new shipping method.

DidSelectShippingMethod(PKPaymentAuthorizationController, PKPaymentMethod, Action<PKPaymentRequestPaymentMethodUpdate>)

[Foundation.Export("paymentAuthorizationController:didSelectShippingMethod:handler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DidSelectShippingMethod (PassKit.PKPaymentAuthorizationController controller, PassKit.PKPaymentMethod paymentMethod, Action<PassKit.PKPaymentRequestPaymentMethodUpdate> completion);
abstract member DidSelectShippingMethod : PassKit.PKPaymentAuthorizationController * PassKit.PKPaymentMethod * Action<PassKit.PKPaymentRequestPaymentMethodUpdate> -> unit
override this.DidSelectShippingMethod : PassKit.PKPaymentAuthorizationController * PassKit.PKPaymentMethod * Action<PassKit.PKPaymentRequestPaymentMethodUpdate> -> unit

Parameters

paymentMethod
PKPaymentMethod
Attributes

Applies to

DidSelectShippingMethod(PKPaymentAuthorizationController, PKShippingMethod, Action<PKPaymentAuthorizationStatus,PKPaymentSummaryItem[]>)

Method that is called when a user selects a new shipping method.

[Foundation.Export("paymentAuthorizationController:didSelectShippingMethod:completion:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'DidSelectShippingMethod' overload with the 'Action<PKPaymentRequestPaymentMethodUpdate>' parameter instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'DidSelectShippingMethod' overload with the 'Action<PKPaymentRequestPaymentMethodUpdate>' parameter instead.")]
public virtual void DidSelectShippingMethod (PassKit.PKPaymentAuthorizationController controller, PassKit.PKShippingMethod shippingMethod, Action<PassKit.PKPaymentAuthorizationStatus,PassKit.PKPaymentSummaryItem[]> completion);
abstract member DidSelectShippingMethod : PassKit.PKPaymentAuthorizationController * PassKit.PKShippingMethod * Action<PassKit.PKPaymentAuthorizationStatus, PassKit.PKPaymentSummaryItem[]> -> unit
override this.DidSelectShippingMethod : PassKit.PKPaymentAuthorizationController * PassKit.PKShippingMethod * Action<PassKit.PKPaymentAuthorizationStatus, PassKit.PKPaymentSummaryItem[]> -> unit

Parameters

controller
PKPaymentAuthorizationController

The controller that owns this delegate.

shippingMethod
PKShippingMethod

The new shipping method.

completion
Action<PKPaymentAuthorizationStatus,PKPaymentSummaryItem[]>

A handler that takes the authorization status for the payment and a list of updated payment summary items.

Attributes

Applies to