RetrieveCredentialResult

constructor(docType: String, credentialId: String)
constructor(docType: String, error: RetrieveCredentialError)


constructor(docType: String, credentialId: String?, error: RetrieveCredentialError?)

Parameters

docType

Document type. Will be present independently of whether the retrieval was successful or not.

credentialId

Local ID of the credential in the device storage. Will be null if the retrieval has failed. You can use this ID to retrieve the credential from the SDK, using the getCredential function. It is not necessary to store the ID in the app data for later usage, as you can get the IDs and basic details of all of the stored credentials, using the getCredentials function.

error

Error that occurred during the retrieval process, or null if the retrieval was successful.