ExternalConsentObject

@Serializable
data class ExternalConsentObject @JvmOverloads constructor(val userId: String, val durationDays: Int = ConsentDefaults.CONSENT_DURATION_DAYS, val note: String? = null, val givenOn: String? = null, val customerContext: CustomerContext? = null) : Parcelable

End-user consent for cloud processing of identity data, as accepted by the BlinkID Verify API.

The SDK never communicates with the Consent Management Service (CMS). Consent is recorded by the BlinkID Verify backend, which forwards it to the CMS. The only responsibility of the SDK is to collect consent (or accept one collected by the integrator) and to provide this object during native getResult payload generation.

Instances are created either by:

Field definitions follow the Verify v3 cloud API consent model.

Constructors

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

Properties

Link copied to clipboard

Optional business context of the transaction.

Link copied to clipboard

Consent validity duration in days. Expiration is calculated by the backend.

Link copied to clipboard

Moment when consent was given, see ConsentTimestamp.

Link copied to clipboard
val note: String?

Consent text that was displayed to the end user. Preserved for audit purposes, so integrator wording stays traceable when consent is client-managed.

Link copied to clipboard

Identifier of the end user giving consent.

Functions

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