getDocumentType

suspend fun getDocumentType(locales: List<String> = emptyList()): DocumentType?

Returns a DocumentType synthesized from metadata obtained at provisioning time, typically from the document issuer (such as mpzPassMetadata, openID4VCIClaimDescriptions, or portraitEquivalenceData), or null if no such metadata is available on this document.

Looking up a DocumentType from a org.multipaz.documenttype.DocumentTypeRepository is the preferred path; if no matching entry exists in the repository, this method may be used as a fallback.

Parameters

locales

BCP 47 language tags, most preferred first (e.g., ["ja-JP", "en-US"]). If empty, the current platform locale is used.