Biometrid Android SDK
3.0.2
3.0.2
  • Introduction
  • Standard SDK
    • Initialization
    • Requirements
    • Enums
    • Installation
      • Gradle
    • Process Management
      • Create Process
      • Previous Step
      • Get Step State
    • Update Step Management
      • Update Step
    • Liveness Validation
    • Photo Capture
      • Configurations
    • Auto Capture
      • Configurations
    • NFC Passport Reader
      • Scan result
      • Configurations
    • Biometric Authentication
    • Device Location
    • Presence Detection
      • Configurations
  • Full SDK
    • Initialization
    • Requirements
    • Installation
      • Gradle
    • Start
    • Photo Capture
    • Liveness Validation
    • Callbacks
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Standard SDK
  2. Photo Capture

Configurations

This section describes the available camera configurations.

The camera feature is customizable and allows configuring the activity texts and colors.

The configurations can be defined as exemplified below:

val style = CameraStyles(
    focusTextColor = R.color.black,
    focusBackgroundColor = R.color.white,
    infoButtonColor = R.color.black,
)
val texts = CameraTexts(outOfFocus = "Out of focus", infoMessage = "More info. here")
val options = CameraOptions(i18n = texts, style = style)

For more information about each possible configuration see the corresponding data model below:

Models

CameraOptions
Description

CameraTexts? i18n

Defines the texts used for the camera preview.

CameraStyles? style

Defines the styles of the camera preview.

Int fileMaxMegabytes

Maximum file size of the captured photo.

Defaults to 10.


CameraStyles
Description

@ColorRes Int? focusTextColor

Defines the color of the text shown when the image is out of focus.

@ColorRes Int? focusBackgroundColor

Defines the color of the background shown behind the text, when the image is out of focus.

@ColorRes Int? infoButtonColor

Defines color of the more information button.


CameraTexts
Description

String? outOfFocus

Defines the text shown when the image is out of focus.

String? infoMessage

Defines the text shown inside the more information dialog.

String? infoButton

Defines the text of the close button inside the more information dialog.

PreviousPhoto CaptureNextAuto Capture

Was this helpful?