Skip to main content

The FaceReconOptions object

startFaceRecon parameters

ParameterTypePurposeRequired
environmentCaaSEnvironmentEnum used to set the execution environment to sandbox or production.Yes.
clientSessionKeyStringTemporary authentication key obtained through a server-to-server request to the Face Recognition API. See Implementation.Yes.
optionsFaceReconOptions?Optional object with the SDK's visual, textual and behavioral customizations.No.

FaceReconOptions

All fields are optional. When a field is not provided, the native SDK applies its default value.

ParameterTypePurposeDefault
sessionIdString?Key identifying the session started in the SDK. It is used to trace the entire flow taken by the user through logs. Accepts up to 255 characters.Generated internally.
documentNumberString?The user's document number (CPF), used exclusively for anti-fraud identification.Not sent.
fontColorString?Font and icon color of the SDK screens, in hexadecimal format (e.g. "#FFFFFF")."#000000"
backgroundColorString?Background color of the SDK screens, in hexadecimal format (e.g. "#000000")."#FFFFFF"
fontFamilyCaaSFontFamily?Font used on the SDK screens.CaaSFontFamily.openSans
showIntroductionScreensbool?When false, disables the introduction screens shown before the liveness proof.true
showSuccessScreenbool?When false, disables the success screen shown after the capture.true
showInvalidTokenScreenbool?When false, disables the screen shown when the clientSessionKey is invalid or has expired.true
audioConfigurationFaceReconAudioConfiguration?Configures the spoken voice guidance, which narrates the capture instructions in real time.FaceReconAudioConfiguration.disable
onboardingTextConfigurationOnboardingTextConfiguration?Customizes the onboarding screen texts.SDK default texts.
logLevelCaaSLogLevel?Verbosity level of the SDK logs.CaaSLogLevel.debug
Warning

From plugin version 5.0.0 onwards, the documentNumber field no longer triggers face registration — it is used solely for anti-fraud identification.

OnboardingTextConfiguration

ParameterTypePurpose
onboardingTitleString?Onboarding screen title.
onboardingFirstLabelString?First instruction shown to the user.
onboardingSecondLabelString?Second instruction shown to the user.
onboardingThirdLabelString?Third instruction shown to the user.
OnboardingTextConfiguration(
onboardingTitle: 'Important tips',
onboardingFirstLabel: 'Make sure your face is visible',
onboardingSecondLabel: 'Fit your face in the oval',
onboardingThirdLabel: 'Remove accessories that cover your face',
)

Enums

CaaSEnvironment

enum CaaSEnvironment {
production,
sandbox,
}

CaaSFontFamily

enum CaaSFontFamily {
jakarta, // iOS only
futura, // iOS and Android
verdana, // iOS and Android
trebuchetMs, // iOS only
tamilsangamMn, // iOS only
openSans, // iOS and Android
helvetica, // Android only
poppins, // Android only
roboto, // Android only
systemFont, // iOS only
}
Warning

Font availability varies by platform. If an unsupported font is passed, the platform's default font is used. For cross-platform consistency, use futura, verdana or openSans.

FaceReconAudioConfiguration

enum FaceReconAudioConfiguration {
enable, // shows the audio toggle, with narration starting off
disable, // disables narration and hides the toggle
accessibility, // shows the toggle with narration starting on when accessibility features are active
}

CaaSLogLevel

enum CaaSLogLevel {
trace,
debug,
log,
info,
warn,
error,
}