Configurations
This section describes the available presence detection configurations.
The presence detector activities are customizable and allow configuring the look and feel of this feature.
The configurations can be defined as exemplified below:
Models
String title
Determines the activity title.
Int titleTextColor
Determines the title text color.
Defaults to WHITE.
Int headerBackgroundColor
Determines the header background color. Defaults to TRANSPARENT.
LineDrawingFilter filter
Determines the filter applied to the scanner.
Defaults to LineDrawingFilter().
Int surroundColor
Determines the frame color.
Defaults to 0x66000000.
ResourceFont font
Determines the font used.
Icon icon
Determines the icon style.
Boolean enableScreenshots
Determines if screenshots are allowed when scanning the face.
Defaults to false.
CloseButton closeButton
Determines the close button style.
Int promptTextColor
Determines the result prompt text color.
Defaults to WHITE.
Boolean promptRoundedCorners
Determines if the result prompt should show rounded corners or not.
Defaults to true.
Boolean disableExteriorEffects
Determines the exterior frame effects visibility.
Defaults to false.
List<Certificate> certificates
Determines de certificates used to validate the scanned face.
Defaults to null.
Int timeoutSecs
Determines the time the activity will wait before closing if no face is detected.
Defaults to 10.
Orientation orientation
Determines the activity screen orientation.
Defaults to PORTRAIT.
Was this helpful?