BlinkIdUxSettings

data class BlinkIdUxSettings(val stepTimeoutDuration: Duration = 60000.milliseconds, val inactivityTimeoutDuration: Duration = 10000.milliseconds, val allowHapticFeedback: Boolean = true, val classFilter: ClassFilter? = null, val redactionSettingsResolver: RedactionSettingsResolver? = null) : Parcelable

Configuration settings for the scanning UX.

Parameters

stepTimeoutDuration

Duration of the scanning session step before a timeout is triggered. Resets on side changes, pauses when onboarding and help screen dialogs appear. If set to Duration.ZERO, the scanning will not time out.

inactivityTimeoutDuration

Duration of the current UI state in a scanning session before a timeout is triggered. Resets every time the UI state changes (reticle type or message). If set to Duration.ZERO, the scanning will not time out.

allowHapticFeedback

Whether haptic feedback is allowed during the scanning process. Defaults to true.

classFilter

Defines which specific document classes are allowed during scanning. Each document class is defined by the trio of Country, Region, and Type. Defaults to null, meaning all classes are allowed.

redactionSettingsResolver

Defines how to resolve RedactionSettings for a given document class.

Constructors

Link copied to clipboard
constructor(stepTimeoutDuration: Duration = 60000.milliseconds, inactivityTimeoutDuration: Duration = 10000.milliseconds, allowHapticFeedback: Boolean = true, classFilter: ClassFilter? = null, redactionSettingsResolver: RedactionSettingsResolver? = null)
constructor(stepTimeoutDurationMs: Int, inactivityTimeoutDuration: Int, allowHapticFeedback: Boolean = true, classFilter: ClassFilter? = null, redactionSettingsResolver: RedactionSettingsResolver? = null)

Constructor for easier Java implementation.

Properties

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)