Instance Method


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


- (BOOL)containsPass:(PKPass *)pass;



The pass being queried.

Return Value

YES if the user’s pass library contains the pass; otherwise, NO.


This method lets you determine that the pass library contains a pass even though your app wouldn’t be able to read or modify the pass. For example, an email client would not have entitlements to read or write any passes from the library.

Your app can use this method to provide a UI indicating whether a pass is already in the library.

See Also

Accessing Passes

+ isPassLibraryAvailable

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

- passes

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

- passWithPassTypeIdentifier:serialNumber:

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

- passesOfType:

Returns the passes of the specified pass type.

- remotePaymentPasses

Returns a list of passes stored on a remote device.