Contents

init(_:request:onCompletion:)

Creates a verify identity button that starts the identity authorization flow, with a completion handler.

Declaration

nonisolated init(_ label: VerifyIdentityWithWalletButtonLabel = .verifyIdentity, request: PKIdentityRequest, onCompletion: @escaping (Result<PKIdentityDocument, any Error>) -> Void)

Parameters

  • label:

    The button’s label.

  • request:

    The identity request to make when a person taps the button.

  • onCompletion:

    The completion handler the framework calls when finishing the authorization flow.

    result

    A result that contains an identity document, if successful; otherwise, an error.

See Also

Creating the button