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
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).
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.
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.
Was this helpful?