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 -> BoolParameters
- 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.
successA value that indicates whether activation is successful..
errorIf 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.