Language

PKPassLibrary.AddPassesFromArchiveAsync Method

Definition

Overloads

Name Description
AddPassesFromArchiveAsync(NSData)

Asynchronously asks the user whether to add the passes from the specified archive.

AddPassesFromArchiveAsync(NSUrl)

Asynchronously asks the user whether to add the passes from the specified archive.

AddPassesFromArchiveAsync(NSData)

Asynchronously asks the user whether to add the passes from the specified archive.

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

Parameters

passesArchiveData
NSData

The serialized pass archive 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

AddPassesFromArchiveAsync(NSUrl)

Asynchronously asks the user whether to add the passes from the specified archive.

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

Parameters

passesArchiveFileUrl
NSUrl

The URL of the pass archive 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