Skip to main content
Version: 1.6.0 and above

IDnowDocIDV

Main class of the IDnow DocIDV SDK. Use this class to start an identity verification session.

Properties​

PropertyTypeDefaultDescription
bindingKeyString""Optional key for device binding use cases

Methods​

initialize​

Initializes the SDK.

fun initialize(
activity: Activity,
config: IDnowDocIDVConfig
)

Parameters​

ParameterTypeDescription
activityActivityThe presenting activity
configIDnowDocIDVConfigConfiguration of the SDK

Example​

val idnowConfig = IDnowDocIDVConfig.Builder.getInstance()
.withLanguage("en")
.withHttpLogging(true)
.build()
IDnowDocIDV.getInstance().initialize(activity, idnowConfig)

start​

Starts an identity verification session.

public fun start(
identId: String,
resultListener: ResultListener
)

Parameters​

ParameterTypeDescription
identIdStringThe session token, format XYZ-ABCDE
resultListenerResultListenerA callback used to receive the result of the identification session, providing a result type and a status code.

Example​

IDnowDocIDV.getInstance().start(identToken, this)

ResultListener​

Interface used to receive the result of an identification session.

interface ResultListener {
fun onIdentResult(iDnowDocIDVResult: IDnowDocIDVResult)
}
MethodParameterDescription
onIdentResultIDnowDocIDVResultCalled when the identification session ends