userConsented

fun userConsented(legalStatement: JumioLegalStatement, userConsent: Boolean)

Records the user's consent decision for a legal statement provided via lookupResult or fasterVerification, obtained during a selfie.DONE workflow.

Parameters

legalStatement

The JumioLegalStatement the user is consenting to, as provided by lookupResult or fasterVerification

userConsent

true if the user grants consent, false otherwise.

Throws

if a JumioScanPart is currently active, or if consenting to lookupResult's legal statement before fasterVerification has been consented to (when fasterVerification is non null)