RequireConsent

data class RequireConsent @JvmOverloads constructor(val userId: String, val durationDays: Int? = null, val note: String? = null, val customerContext: CustomerContext? = null) : BlinkIdVerifyConsentUxConfig

Enables the SDK consent UI and provides customization points for both the UI and the generated consent payload.

Consent is collected on the built-in consent screen, which is shown before scanning starts. Declining the consent cancels the scanning session.

Constructors

Link copied to clipboard
constructor(userId: String, durationDays: Int? = null, note: String? = null, customerContext: CustomerContext? = null)

Properties

Link copied to clipboard

Optional business context stored alongside the consent record.

Link copied to clipboard

Validity of the collected consent, in days. When null, the SDK default registered for the BlinkID Verify consent source is used.

Link copied to clipboard
val note: String?

Legal text displayed on the consent screen and recorded in the consent object. When null, the SDK default copy is shown.

Link copied to clipboard

Identifier of the end user giving consent. Must be set by the integrator so consent records can be correlated and revoked in the backend.

Functions

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