Skip to main content

Enums

DocumentEnums

Defines the type of document to be captured. Passed to openDocument to configure the capture session.

Mixed casing

CPF, CNH, and RG use uppercase (historical SDK naming). Multi-word variants use lowerCamelCase (cnhFrente, rgVerso, etc.). Use each value exactly as documented — the SDK is case-sensitive.

SwiftObjective-CDescription
DocumentEnums.CPFDocumentCPFCapture the CPF
DocumentEnums.CNHDocumentCNHCapture the open CNH (front and back)
DocumentEnums.cnhFrenteDocumentCnhFrenteCapture the front of the CNH
DocumentEnums.cnhVersoDocumentCnhVersoCapture the back of the CNH
DocumentEnums.RGDocumentRGCapture the open RG (front and back)
DocumentEnums.rgFrenteDocumentRgFrenteCapture the front of the RG
DocumentEnums.rgVersoDocumentRgVersoCapture the back of the RG
DocumentEnums.noneDocumentNoneGeneric rectangular frame — use for any document without a dedicated frame
Non-Brazilian documents

The document-specific frames (CPF, CNH, RG) are Brazil-only. For US driver's licenses, passports, or any other document type, use DocumentEnums.none / DocumentNone.

enum DocumentEnums {
case CPF
case CNH
case cnhFrente
case cnhVerso
case RG
case rgFrente
case rgVerso
case none
}
EnvironmentEnum

Defines the environment used during SDK execution.

ValueDescription
EnvironmentEnum.PRODProduction environment
EnvironmentEnum.UATUAT / sandbox environment
enum EnvironmentEnum {
case PROD
case UAT
}
LocaleTypes

Defines the language used in the SDK UI.

ValueDescription
LocaleTypes.PT_BRPortuguese (Brazil)
LocaleTypes.ES_MXSpanish (Mexico)
LocaleTypes.ES_ESSpanish (Spain)
LocaleTypes.EN_USEnglish (USA)
enum LocaleTypes {
case PT_BR
case ES_MX
case ES_ES
case EN_US
}