Contents

addPass(_:)

Asks the customer to confirm adding a Pass to Wallet.

Declaration

final func addPass(_ pass: Data) async throws -> Bool

Parameters

  • pass:

    Properly created .pkpass data to be added to Wallet. The passTypeIdentifier of the pass must be one of the identifiers in the Passtypeidentifiers.

Mentioned in

Return Value

true if the pass is added to Wallet successfully or the same pass already exists; false if the customer declines.

Discussion