IDnowDocIDV
Main class of the IDnow DocIDV SDK. Use this class to start an identity verification session.
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| bindingKey | String | "" | Optional key for device binding use cases |
Methods
initialize
Initializes the SDK.
fun initialize(
activity: Activity,
config: IDnowDocIDVConfig
)
Parameters
| Parameter | Type | Description |
|---|---|---|
| activity | Activity | The presenting activity |
| config | IDnowDocIDVConfig | Configuration 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
| Parameter | Type | Description |
|---|---|---|
| identId | String | The session token, format XYZ-ABCDE |
| resultListener | ResultListener | A 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)
}
| Method | Parameter | Description |
|---|---|---|
| onIdentResult | IDnowDocIDVResult | Called when the identification session ends |