PKPassLibrary.ActivatePaymentPassAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ActivatePaymentPassAsync(PKPaymentPass, NSData) |
Activates the specified |
ActivatePaymentPassAsync(PKPaymentPass, String) |
Activates the specified |
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.