Look-and-Feel Customization
To set your own look-and-feel options, use the style
section in the Ozliveness.open
method. The options are listed below the example.
baseColorCustomization
Main color settings.
Parameter
Description
textColorPrimary
Main text color
backgroundColorPrimary
Main background color
textColorSecondary
Secondary text color
backgroundColorSecondary
Secondary background color
iconColor
Icons’ color
baseFontCustomization
Main font settings.
Parameter
Description
textFont
Font
textSize
Font size
textWeight
Font weight
textStyle
Font style
titleFontCustomization
Title font settings.
Parameter
Description
textFont
Font
textSize
Font size
textWeight
Font weight
textStyle
Font style
buttonCustomization
Buttons’ settings.
Parameter
Description
textFont
Font
textSize
Font size
textWeight
Font weight
textStyle
Font style
textColorPrimary
Main text color
backgroundColorPrimary
Main background color
textColorSecondary
Secondary text color
backgroundColorSecondary
Secondary background color
cornerRadius
Button corner radius
toolbarCustomization
Toolbar settings.
Parameter
Description
closeButtonIcon
Close button icon
iconColor
Close button icon color
centerHintCustomization
Center hint settings.
Parameter
Description
textFont
Font
textSize
Font size
textWeight
Font weight
textStyle
Font style
textColor
Text color
backgroundColor
Background color
backgroundOpacity
Background opacity
backgroundCornerRadius
Frame corner radius
verticalPosition
Vertical position
hintAnimation
Hint animation settings.
Parameter
Description
hideAnimation
Disable animation
hintGradientColor
Gradient color
hintGradientOpacity
Gradient opacity
animationIconSize
Animation icon size
faceFrameCustomization
Face frame settings.
Parameter
Description
geometryType
Frame shape: rectangle or oval
cornersRadius
Frame corner radius (for rectangle)
strokeDefaultColor
Frame color when a face is not aligned properly
strokeFaceInFrameColor
Frame color when a face is aligned properly
strokeOpacity
Stroke opacity
strokeWidth
Stroke width
strokePadding
Padding from stroke
documentFrameCustomization
Document capture frame settings.
Parameter
Description
cornersRadius
Frame corner radius
templateColor
Document template color
templateOpacity
Document template opacity
backgroundCustomization
Background settings.
Parameter
Description
backgroundColor
Background color
backgroundOpacity
Background opacity
antiscamCustomization
Scam protection settings: the antiscam message warns user about their actions being recorded.
Parameter
Description
textMessage
Antiscam message text
textFont
Font
textSize
Font size
textWeight
Font weight
textStyle
Font style
textColor
Text color
textOpacity
Text opacity
backgroundColor
Background color
backgroundOpacity
Background opacity
backgroundCornerRadius
Frame corner radius
flashColor
Flashing indicator color
versionTextCustomization
SDK version text settings.
Parameter
Description
textFont
Font
textSize
Font size
textWeight
Font weight
textStyle
Font style
textColor
Text color
textOpacity
Text opacity
maskCustomization
3D mask settings. The mask has been implemented in 1.2.1.
Parameter
Description
maskColor
The color of the mask itself
glowColor
The color of the glowing mask shape
minAlpha
Minimum mask transparency level. Implemented in 1.3.1
maxAlpha
Maximum mask transparency level. Implemented in 1.3.1
Migrating to the New Design from the Previous Versions (before 1.0.1)
Table of parameters' correspondence:
Previous design
New design
doc_color
-
face_color_success
faceFrame.faceReady
faceFrameCustomization.strokeFaceInFrameColor
face_color_fail
faceFrame.faceNotReady
faceFrameCustomization.strokeDefaultColor
centerHint.textSize
centerHintCustomization.textSize
centerHint.color
centerHintCustomization.textColor
centerHint.yPosition
centerHintCustomization.verticalPosition
centerHint.letterSpacing
-
centerHint.fontStyle
centerHintCustomization.textStyle
closeButton.image
-
backgroundOutsideFrame.color
backgroundCustomization.backgroundColor
Last updated