Params that relate to the camera view controller customization and etc.

Constructors

Properties

activityIndicatorColor? activityIndicatorLandscapePositionMultiplier? activityIndicatorPortraitPositionMultiplier? backgroundMaskAlpha? backgroundMaskColor? borderBackgroundImage? borderBackgroundImageTransformsAndroid? borderBackgroundImageTransformsIOS? cameraFrameActiveColor? cameraFrameBorderWidth? cameraFrameCornerRadius? cameraFrameDefaultColor? cameraFrameLandscapeAspectRatio? cameraFrameLineCap? cameraFrameLineLength? cameraFrameOffsetWidth? cameraFramePortraitAspectRatio? cameraFrameShapeType? cameraFrameVerticalPositionMultiplier? cameraPreviewBackgroundColor? cameraPreviewVerticalPositionMultiplier? cameraSwitchButtonImage? captureButtonImage? changeFrameButtonCollapseImage? changeFrameButtonExpandImage? closeButtonImage? colors customLabelStatus? customStatusPositionMultiplier? fonts helpAnimationImage? helpAnimationImageTransformsAndroid? helpAnimationImageTransformsIOS? images livenessAnimationImage? livenessAnimationImageTransformsAndroid? livenessAnimationImageTransformsIOS? livenessAnimationPositionMultiplier? multipageAnimationBackImage? multipageAnimationBackImageTransformsAndroid? multipageAnimationBackImageTransformsIOS? multipageAnimationFrontImage? multipageAnimationFrontImageTransformsAndroid? multipageAnimationFrontImageTransformsIOS? multipageButtonBackgroundColor? multipageButtonImage? multipageButtonText? multipageButtonTextColor? multipageButtonTextFont? nextPageAnimationEndDelay? nextPageAnimationStartDelay? resultStatus? resultStatusBackgroundColor? resultStatusPositionMultiplier? resultStatusTextColor? resultStatusTextFont? showBackgroundMask? showHelpAnimation? showNextPageAnimation? showResultStatusMessages? showStatusMessages? status? statusBackgroundColor? statusPositionMultiplier? statusTextColor? statusTextFont? tintColor? toolbarSize? torchButtonOffImage? torchButtonOnImage? uiCustomizationLayer?

Methods

Constructors

Properties

activityIndicatorColor?: number

Allows you to set a color for the activity indicator.

activityIndicatorLandscapePositionMultiplier?: number

Allows you to set an offset for the activity indicator (landscape orientation). If not set, activity indicator always centered in the camera border.

activityIndicatorPortraitPositionMultiplier?: number

Allows you to set an offset for the activity indicator (portrait orientation). If not set, activity indicator always centered in the camera border.

backgroundMaskAlpha?: number

Allows you to set intensity of the background mask.

1.0
backgroundMaskColor?: number

Allows you to set color for background mask area.

borderBackgroundImage?: string

Allows you to set any image within the camera frame. Base64 string.

borderBackgroundImageTransformsAndroid?: number[]

Matrix used to scale the view within the camera frame.

Android class android.graphics.Matrix. Passed as Matrix.setValues()

Android only. For iOS use borderBackgroundImageTransformsIOS.

Unmodifiable property. Use setter instead of editing.

borderBackgroundImageTransformsIOS?: ViewContentMode

Allows you to specify how a view within the camera frame adjusts its content when its size changes.

cameraFrameActiveColor?: number

Allows you to set a color for the camera frame when a document is detected.

cameraFrameBorderWidth?: number

Allows you to set thickness of the camera frame borders.

3
cameraFrameCornerRadius?: number

Allows you to set a corner radius of the camera frame.

10
cameraFrameDefaultColor?: number

Allows you to set a color for the camera frame when a document is out of the camera frame or is not detected.

cameraFrameLandscapeAspectRatio?: number

Allows you to set an aspect ratio of the camera frame (landscape orientation).

0
cameraFrameLineCap?: Cap

Allows you to customize the beginning and ending of stroked lines of the camera frame.

Cap.BUTT

cameraFrameLineLength?: number

Allows you to set length of the lines of the camera frame.

It's applied once you change the cameraFrameShapeType property to FrameShapeType.CORNER.

25
cameraFrameOffsetWidth?: number

Allows you to set an offset for the camera frame (portrait orientation).

3
cameraFramePortraitAspectRatio?: number

Allows you to set an aspect ratio of the camera frame (portrait orientation).

0
cameraFrameShapeType?: FrameShapeType

Allows you to set a shape type for the camera frame.

cameraFrameVerticalPositionMultiplier?: number

Allows you to change the location of the camera frame vertically.

1
cameraPreviewBackgroundColor?: number

Allows you to set a background color for the camera preview (top and bottom frames).

cameraPreviewVerticalPositionMultiplier?: number

Allows you to change the vertical offset of the camera preview layer. If you need to raise the layer 50% of its height up, then you specify 0.5. If you need to lower the layer 75% of its height, then enter 1.75. Valid values: from 0 (the layer will be raised completely up) to 2 (the layer will be completely lowered down).

cameraSwitchButtonImage?: string

Allows you to set any image for the button that allows changing positions of the capture device. Base64 string.

captureButtonImage?: string

Allows you to set any image for the capture button. Base64 string.

changeFrameButtonCollapseImage?: string

Not used in new UI Allows you to set any image for the button that allows changing shapes of the camera (collapsed state). Base64 string.

changeFrameButtonExpandImage?: string

Not used in new UI Allows you to set any image for the button that allows changing shapes of the camera (expanded state). Base64 string.

closeButtonImage?: string

Allows you to set any image for the close button. Base64 string.

customLabelStatus?: string

Allows you to create a custom status.

customStatusPositionMultiplier?: number

Allows you to change the location of the custom status.

For example, if you set the multiplier to 0.5 and the number of pixels by vertical is equal to 800, your message will be centralized and located at 200 px from the top, i.e. (800 / 2) * 0.5 = 200 px. If the multiplier is equal to 1, the message will be centered. If the multiplier is equal to zero, the default location will be used.

1
helpAnimationImage?: string

Allows you to set any image for the help animation. Base64 string.

helpAnimationImageTransformsAndroid?: number[]

Matrix used to scale help animation.

Android class android.graphics.Matrix. Passed as Matrix.setValues()

Android only. For iOS use helpAnimationImageTransformsIOS.

Unmodifiable property. Use setter instead of editing.

helpAnimationImageTransformsIOS?: ViewContentMode

Allows you to specify how a view of the help animation adjusts its content when its size changes.

livenessAnimationImage?: string

Allows you to set any image for the liveness animation.

When set to null the default image will be used. This property can be set during the scanning process to tailor the user experiese for different types of documents. Base64 string.

livenessAnimationImageTransformsAndroid?: number[]

Matrix used to scale liveness animation.

Android class android.graphics.Matrix. Passed as Matrix.setValues()

Android only. For iOS use livenessAnimationImageTransformsIOS.

Unmodifiable property. Use setter instead of editing.

livenessAnimationImageTransformsIOS?: ViewContentMode

Allows you to specify how a view of the liveness animation adjusts its content when its size changes.

livenessAnimationPositionMultiplier?: number

Allows you to change the location of the liveness animation.

For example, if you set the multiplier to 0.5 and the number of pixels by vertical is equal to 800, the animation will be centralized and located at 200 px from the top, i.e. (800 / 2) * 0.5 = 200 px. If the multiplier is set to 1, the animation will be centered. If the multiplier is set to 0, the default value will be used.

1
multipageAnimationBackImage?: string

Allows you to set any image for the multipage animation (back side). Base64 string.

multipageAnimationBackImageTransformsAndroid?: number[]

Matrix used to scale multipage animation (back side).

Android class android.graphics.Matrix. Passed as Matrix.setValues()

Android only. For iOS use multipageAnimationBackImageTransformsIOS.

Unmodifiable property. Use setter instead of editing.

multipageAnimationBackImageTransformsIOS?: ViewContentMode

Allows you to specify how a view of the multipage animation (back side) adjusts its content when its size changes.

multipageAnimationFrontImage?: string

Allows you to set any image for the multipage animation (front side). Base64 string.

multipageAnimationFrontImageTransformsAndroid?: number[]

Matrix used to scale multipage animation (front side).

Android class android.graphics.Matrix. Passed as Matrix.setValues()

Android only. For iOS use multipageAnimationFrontImageTransformsIOS.

Unmodifiable property. Use setter instead of editing.

multipageAnimationFrontImageTransformsIOS?: ViewContentMode

Allows you to specify how a view of the multipage animation (front side) adjusts its content when its size changes.

multipageButtonBackgroundColor?: number

Allows you to set a color for the "Skip next page" button.

multipageButtonImage?: string

Allows you to set any UIImage for the "Skip next page" button.

multipageButtonText?: string
multipageButtonTextColor?: number
multipageButtonTextFont?: Font
nextPageAnimationEndDelay?: number

Animation delay after flip.

0
nextPageAnimationStartDelay?: number

Animation delay before flip.

0
resultStatus?: string

Not used in new UI Allows you to set any string to the result status.

resultStatusBackgroundColor?: number

Not used in new UI Allows you to set a color of the background for the result status messages.

resultStatusPositionMultiplier?: number

Not used in new UI Allows you to change the location of the result status.

For example, if you set the multiplier to 0.5 and the number of pixels by vertical is equal to 800, your message will be centralized and located at 200 px from the top, i.e. (800 / 2) * 0.5 = 200 px. If the multiplier is equal to 1, the message will be centered. If the multiplier is equal to zero, the default location will be used.

0
resultStatusTextColor?: number

Not used in new UI Allows you to set a color for the result status messages.

resultStatusTextFont?: Font

Not used in new UI Allows you to set a font for the result status messages.

showBackgroundMask?: boolean

If it's set to true, the background mask next to the camera frame will be displayed.

true
showHelpAnimation?: boolean

If it's set to true, the animation showing how to position a document will be displayed.

false
showNextPageAnimation?: boolean

If it's set to true, the animation asking for processing the next page will be displayed.

true
showResultStatusMessages?: boolean

Not used in new UI If it's set to true, result status messages during the document processing will be shown.

true
showStatusMessages?: boolean

If it's set to true, status messages during the document processing will be shown.

true
status?: string

Allows you to set any string to the status.

statusBackgroundColor?: number

Allows you to set a background color for the status messages.

statusPositionMultiplier?: number

Allows you to change the location of the status.

For example, if you set the multiplier to 0.5 and the number of pixels by vertical is equal to 800, your message will be centralized and located at 200 px from the top, i.e. (800 / 2) * 0.5 = 200 px. If the multiplier is equal to 1, the message will be centered. If the multiplier is equal to zero, the default location will be used.

0
statusTextColor?: number

Allows you to set a color for the status messages.

statusTextFont?: Font

Allows you to set a font for the status messages.

tintColor?: number

Allows you to set a color for all visual elements.

toolbarSize?: number

Allows you to set a size for the toolbar (it's where all buttons are located).

torchButtonOffImage?: string

Allows you to set any image for the torch button when its state is OFF. Base64 string.

torchButtonOnImage?: string

Allows you to set any image for the torch button when its state is ON. Base64 string.

uiCustomizationLayer?: Record<string, any>

JSON structure defining labels and graphic elements to be added to the Camera UI.

Unmodifiable property. Use setter instead of editing.

Methods

  • Allows you to deserialize object.

    Parameters

    • jsonObject: any

    Returns Customization