Skip to main content

Customization API

Applying a custom theme

Pass your theme implementation to the builder using setTheme():

acessoBioBuilder.setTheme(myTheme)

Where myTheme is an object that implements the IAcessoBioTheme interface.

IAcessoBioTheme — Selfie
MethodDescription
getColorBackground()Background color of the selfie capture frame
getColorBoxMessage()Background color of the message box
getColorTextMessage()Text color inside the message box
getColorSilhouetteSuccess()Color of the silhouette when capture succeeds
IAcessoBioTheme — Document
MethodDescription
getColorBackground()Background color of the document capture frame
getColorBackgroundTakePictureButton()Background color of the take-picture button
getColorIconTakePictureButton()Icon color inside the take-picture button
getColorBackgroundBottomDocument()Background color of the bottom bar
getColorTextBottomDocument()Text color in the bottom bar
Locale
MethodTypeDescription
setLocale(locale: LocaleTypes)LocaleTypesSets the capture screen language

Refer to API Reference > Enums for the full list of supported LocaleTypes values.

XML color resources

You can also override colors via your app's colors.xml resource file. The following names are recognized by the SDK:

Resource nameDefaultDescription
unico_color_background#F9F8FABackground of the capture frame
unico_color_silhouette_success#22C532Silhouette color when aligned
unico_color_silhouette_error#FFCB00Silhouette color on error
unico_color_silhouette_neutral#000000Silhouette color (neutral)
unico_color_box_message#1172EBBackground of the message box
unico_color_text_message#0B0B0BText inside the message box
unico_color_background_take_picture_button#1172EBBackground of the capture button
unico_color_icon_take_picture_button#FFFFFFIcon color of the capture button
unico_color_background_bottom_document#FFFFFFBackground of the document bottom bar
unico_color_text_bottom_document#404040Text in the document bottom bar