Type Method

isPassLibraryAvailable()

A Boolean value that indicates whether the pass library is available.

Declaration

class func isPassLibraryAvailable() -> Bool

Return Value

true if the pass library is available; otherwise, false.

Discussion

This method is provided because the pass library may be unavailable even if the PKPassLibrary class exists.

See Also

Accessing Passes

func passes() -> [PKPass]

Returns the passes in the user’s pass library to which the app has access.

func containsPass(PKPass) -> Bool

Indicates whether the user’s pass library contains the specified pass.

func pass(withPassTypeIdentifier: String, serialNumber: String) -> PKPass?

Returns the pass with the given pass type identifier and serial number.

func passes(of: PKPassType) -> [PKPass]

Returns the passes of the specified pass type.

func remotePaymentPasses() -> [PKPaymentPass]

Returns a list of passes stored on a remote device.