Skip to main content

Enums

DocumentEnums

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

ValueDescription
DocumentEnums.CPFCapture the CPF
DocumentEnums.CNHCapture the open CNH
DocumentEnums.cnhFrenteCapture the front of the CNH
DocumentEnums.cnhVersoCapture the back of the CNH
DocumentEnums.RGCapture the open RG
DocumentEnums.rgFrenteCapture the front of the RG
DocumentEnums.rgVersoCapture the back of the RG
DocumentEnums.noneGeneric rectangular frame for any other document
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.UATStaging 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
}