Biometrid IOS SDK
2.5.5
2.5.5
  • Introduction
  • Standard SDK
    • Prerequisites
    • Requirements
    • Initialization
    • Enums
    • Installation
      • Zip file
      • CocoaPods
    • Process Management
      • Create process
      • Get Step State
      • Update Step
      • Previous Step
    • Liveness Detection
    • Auto Capture
      • MRZ Capture
      • Configurations
    • Camera
      • Configurations
    • NFC
      • Scan Result
      • Configurations
    • Video Conference
  • FULL SDK
    • Requirements
    • Usage
    • Installation
      • Zip file
      • CocoaPods
    • Initialization
    • Start
    • Stop
    • Callbacks
Powered by GitBook
On this page

Was this helpful?

  1. Standard SDK
  2. Camera

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:

let texts = CameraTexts(outOfFocus: "Out of focus", infoMessage: "More info. here", infoButton: "OK")
let style = CameraStyles(focusTextColor: .white)
let side = PhotoSide.front
let enableInactive = InactiveOptions(active: true, timer: 60)
let options = CameraOptions(i18n: texts, style: style, side: side, enableInactive: enableInactive)

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

Models

CameraOptions
Description

i18n: CameraTexts?

Defines the texts used for the camera preview.

style: CameraStyles?

Defines the styles of the camera preview.

side: PhotoSide?

Defines which side of the camera to open

enableInactive: InactiveOptions?

Defines the configurations for inactivity popup. Defaults to true and 30 (seconds).


CameraStyles
Description

focusTextColor: UIColor?

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

focusBackgroundColor: UIColor?

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

infoButtonColor: UIColor?

Defines color of the more information button.


CameraTexts
Description

outOfFocus: String?

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

infoMessage: String?

Defines the text shown inside the more information dialog.

infoButton: String?

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

PreviousCameraNextNFC

Was this helpful?