InquiryDelegate

public protocol InquiryDelegate : AnyObject

Methods for managing verification results. Please note: all methods will be called from the main thread.

  • Called on a completed inquiry.

    Declaration

    Swift

    func inquiryComplete(inquiryId: String, status: String, fields: [String : InquiryField])

    Parameters

    inquiryId

    unique Persona-generated identifier for the inquiry. If a user cancels before an inquiry has been created this will be nil.

    status

    result from the Inquiry flow

    fields

    fields data extracted from the Inquiry flow

  • Called when the individual cancels the inquiry.

    Declaration

    Swift

    func inquiryCanceled(inquiryId: String?, sessionToken: String?)

    Parameters

    inquiryId

    a unique, Persona-generated identifier for the inquiry. If a user cancels before an inquiry has been created this will be nil.

    sessionToken

    the session token used for this inquiry

  • Called when there is a problem during the Inquiry flow.

    Declaration

    Swift

    func inquiryError(_ error: Error)

    Parameters

    error

    the reason why the Inquiry did not complete correctly