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
inquiryIdunique Persona-generated identifier for the inquiry. If a user cancels before an inquiry has been created this will be nil.
statusresult from the Inquiry flow
fieldsfields data extracted from the Inquiry flow
-
Called when the individual cancels the inquiry.
Declaration
Swift
func inquiryCanceled(inquiryId: String?, sessionToken: String?)Parameters
inquiryIda unique, Persona-generated identifier for the inquiry. If a user cancels before an inquiry has been created this will be nil.
sessionTokenthe session token used for this inquiry
-
Called when there is a problem during the Inquiry flow.
Declaration
Swift
func inquiryError(_ error: Error)Parameters
errorthe reason why the Inquiry did not complete correctly
View on GitHub
InquiryDelegate Protocol Reference