CardFaceData

data class CardFaceData(val docType: String, val displayName: String?, val typeDisplayName: String?, val fields: Map<String, String>, val dates: Map<String, LocalDate>, val portrait: ByteArray?)

What a CardFace draws from: the credential's values, already rendered as text.

Parameters

fields

element id → display value (text as-is, dates as ISO YYYY-MM-DD, numbers, booleans).

dates

element id → date, for date elements (use date for dd/MM/yyyy).

portrait

the holder's photo (JPEG/PNG bytes), if the credential has one.

Constructors

Link copied to clipboard
constructor(docType: String, displayName: String?, typeDisplayName: String?, fields: Map<String, String>, dates: Map<String, LocalDate>, portrait: ByteArray?)

Properties

Link copied to clipboard
val dates: Map<String, LocalDate>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Holder name from given_name + family_name, else the document/type name.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun date(id: String): String?

A date element as dd/MM/yyyy, else its display value.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int