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
| Property | Type | Default | Description |
|---|---|---|---|
| language | String? | null | ISO 639-1 language code (e.g. "fr", "de") |
| useHttpLogs | Boolean | false | Whether HTTP logs are enabled |
Builder
Use Builder to create an IDnowDocIDVConfig instance.
Methods
| Method | Parameter | Default | Description |
|---|---|---|---|
| withLanguage(language) | String? | null | Sets the preferred language. Blank values are ignored |
| withHttpLogging(useHttpLogs) | Boolean | false | Enables 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()