Contents

serviceProviderData(for:completion:)

Calls a completion handler that returns the custom data for a Secure Element pass.

Declaration

func serviceProviderData(for secureElementPass: PKSecureElementPass, completion: @escaping  @Sendable (Data?, (any Error)?) -> Void)
func serviceProviderData(for secureElementPass: PKSecureElementPass) async throws -> Data

Parameters

  • secureElementPass:

    The Secure Element pass to check for secure data.

  • completion:

    The completion block called by the system that returns the data or an error.

    This block takes the following parameters:

    serviceProviderData

    The custom data for the Secure Element pass; otherwise, nil.

    error

    If the process fails, an Nserror that describes the failure; otherwise, nil.

See Also

Accessing passes