Skip to main content
Version: 1.0.0 - 1.5.x

IdentResult & IDnowDocIDVResultListener

IdentResult

Holds the result of an identification session. Nested class of IDnowDocIDV.

public class IdentResult

type

public enum type: Int {
case FINISHED
case CANCELLED
case ERROR
}
CaseRaw ValueDescription
FINISHEDThe session completed successfully
CANCELLEDThe session was cancelled by the user
ERRORThe session ended with an error

statusCode

public enum statusCode: Int
CaseCodeDescription
E1010Default error
E100100Token format incorrect
E101101Token not found
E102102Token expired or deleted
E103103Token already completed
E110110Ident info response not parsable or empty
E111111Ident info server error
E120120Messages response not parsable or empty
E121121Messages server error
E130130Resources response not parsable or empty
E131131Resources server error
E140140QES name response not parsable or empty
E141141QES name server error
E142142QES name missing fullname
E150150Start ident response not parsable or empty
E151151Start ident server error
E152152Start ident missing session key
E153153VideoIdent token used in DocIDV SDK
E160160Start ident via web failed
E170170Backend forced websocket close
E171171Backend command PROCESS_FAILED via websocket
EUnreachable1000Server unreachable

IDnowDocIDVResultListener

Callback used by the start method to receive the result of an identification session.

public typealias IDnowDocIDVResultListener = (
IDnowDocIDV.IdentResult.type,
IDnowDocIDV.IdentResult.statusCode,
String
) -> Void
ParameterTypeDescription
1stIdentResult.typeThe result type of the session
2ndIdentResult.statusCodeThe status code of the session
3rdStringA human-readable message