Enums
DocumentEnums
Defines the type of document to be captured. Passed to openDocument to configure the capture session.
| Value | Description |
|---|---|
DocumentEnums.CPF | Capture the CPF |
DocumentEnums.CNH | Capture the open CNH |
DocumentEnums.cnhFrente | Capture the front of the CNH |
DocumentEnums.cnhVerso | Capture the back of the CNH |
DocumentEnums.RG | Capture the open RG |
DocumentEnums.rgFrente | Capture the front of the RG |
DocumentEnums.rgVerso | Capture the back of the RG |
DocumentEnums.none | Generic 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.
| Value | Description |
|---|---|
EnvironmentEnum.PROD | Production environment |
EnvironmentEnum.UAT | Staging environment |
enum EnvironmentEnum {
case PROD
case UAT
}
LocaleTypes
Defines the language used in the SDK UI.
| Value | Description |
|---|---|
LocaleTypes.PT_BR | Portuguese (Brazil) |
LocaleTypes.ES_MX | Spanish (Mexico) |
LocaleTypes.ES_ES | Spanish (Spain) |
LocaleTypes.EN_US | English (USA) |
enum LocaleTypes {
case PT_BR
case ES_MX
case ES_ES
case EN_US
}