Skip to main content
Version: 1.0.0 - 1.5.x

IDnowDocIDVConfig

Configuration object for the IDnow DocIDV SDK. Built using the nested Builder class.

class IDnowDocIDVConfig private constructor(
val language: String?,
val useHttpLogs: Boolean
)

Properties​

PropertyTypeDefaultDescription
languageString?nullISO 639-1 language code (e.g. "fr", "de")
useHttpLogsBooleanfalseWhether HTTP logs are enabled

Builder​

Use Builder to create an IDnowDocIDVConfig instance.

Methods​

MethodParameterDefaultDescription
withLanguage(language)String?nullSets the preferred language. Blank values are ignored
withHttpLogging(useHttpLogs)BooleanfalseEnables or disables HTTP logging
build()——Builds and returns the IDnowDocIDVConfig instance
getInstance()——Creates and returns a new Builder instance

Example​

val config = IDnowDocIDVConfig.Builder.getInstance()
.withLanguage("en")
.withHttpLogging(true)
.build()