Contents

pass(withPassTypeIdentifier:serialNumber:)

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

Declaration

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

Parameters

  • identifier:

    The pass’s pass type identifier.

  • serialNumber:

    The pass’s serial number.

Return Value

The pass with the specified pass type identifier and serial number, or nil if there isn’t such a pass or if the app doesn’t have the appropriate entitlement.

See Also

Accessing passes