Contents

activate(_:activationData:completion:)

Activates a Secure Element pass using the specified data.

Declaration

func activate(_ secureElementPass: PKSecureElementPass, activationData: Data, completion: (@Sendable (Bool, (any Error)?) -> Void)? = nil)
func activate(_ secureElementPass: PKSecureElementPass, activationData: Data) async throws -> Bool

Parameters

  • secureElementPass:

    The Secure Element pass to activate.

  • activationData:

    A cryptographic value that the activation process requires.

  • completion:

    A closure that PassKit executes after it attempts activation.

    success

    A value that indicates whether activation is successful..

    error

    If activation fails, an error that describes the failure; otherwise, otherwise, nil.

Discussion

You must provision the Secure Element pass and make sure it’s in the PKSecureElementPass.PassActivationState.requiresActivation state before you call this method.

See Also

Managing passes