編集

次の方法で共有


PKPassLibrary.ActivatePaymentPassAsync Method

Definition

Overloads

ActivatePaymentPassAsync(PKPaymentPass, NSData)

Activates the specified paymentPass with the activation code in activationData.

ActivatePaymentPassAsync(PKPaymentPass, String)

Activates the specified paymentPass with the activation code in activationData.

ActivatePaymentPassAsync(PKPaymentPass, NSData)

Activates the specified paymentPass with the activation code in activationData.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> ActivatePaymentPassAsync (PassKit.PKPaymentPass paymentPass, Foundation.NSData activationData);
abstract member ActivatePaymentPassAsync : PassKit.PKPaymentPass * Foundation.NSData -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.ActivatePaymentPassAsync : PassKit.PKPaymentPass * Foundation.NSData -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

paymentPass
PKPaymentPass
activationData
NSData

Returns

A task that represents the asynchronous ActivatePaymentPass operation. The value of the TResult parameter is of type System.Action<System.Boolean,Foundation.NSError>.

Attributes

Applies to

ActivatePaymentPassAsync(PKPaymentPass, String)

Activates the specified paymentPass with the activation code in activationData.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'ActivatePaymentPass (PKPaymentPass, NSData, Action<bool, NSError> completion)' instead.")]
public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> ActivatePaymentPassAsync (PassKit.PKPaymentPass paymentPass, string activationCode);
abstract member ActivatePaymentPassAsync : PassKit.PKPaymentPass * string -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.ActivatePaymentPassAsync : PassKit.PKPaymentPass * string -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

paymentPass
PKPaymentPass
activationCode
String

Returns

A task that represents the asynchronous ActivatePaymentPass operation. The value of the TResult parameter is of type System.Action<System.Boolean,Foundation.NSError>.

Attributes

Remarks

The ActivatePaymentPassAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to