Language

PKPassLibrary.AddPassesAsync Method

Definition

Overloads

Name Description
AddPassesAsync(PKPass[])

Presents a standard UX for adding multiple passes.

AddPassesAsync(NSData[])

Asynchronously asks the user whether to add the passes represented by the specified data.

AddPassesAsync(PKPass[])

Presents a standard UX for adding multiple passes.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<PassKit.PKPassLibraryAddPassesStatus> AddPassesAsync(PassKit.PKPass[] passes);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member AddPassesAsync : PassKit.PKPass[] -> System.Threading.Tasks.Task<PassKit.PKPassLibraryAddPassesStatus>
override this.AddPassesAsync : PassKit.PKPass[] -> System.Threading.Tasks.Task<PassKit.PKPassLibraryAddPassesStatus>

Parameters

passes
PKPass[]

Returns

A task that represents the asynchronous AddPasses operation. The value of the TResult parameter is of type System.Action<PassKit.PKPassLibraryAddPassesStatus>.

Attributes

Applies to

AddPassesAsync(NSData[])

Asynchronously asks the user whether to add the passes represented by the specified data.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<PassKit.PKPassLibraryAddPassesStatus> AddPassesAsync(Foundation.NSData[] passesData);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member AddPassesAsync : Foundation.NSData[] -> System.Threading.Tasks.Task<PassKit.PKPassLibraryAddPassesStatus>
override this.AddPassesAsync : Foundation.NSData[] -> System.Threading.Tasks.Task<PassKit.PKPassLibraryAddPassesStatus>

Parameters

passesData
NSData[]

The serialized data for each pass to add.

Returns

A task whose result indicates whether the passes were added, require review, or the operation was canceled.

Attributes

Remarks

If the result is ShouldReviewPasses, present a PKAddPassesViewController so the user can review the passes.

Applies to