Builder

data class Builder(var numberOfFrameToCollect: Int = 3, var automaticCapture: Boolean = true, var timeBeforeAutomaticCapture: Int = 1, var cameraQuality: MBCameraOptions = MBCameraOptions(), var isDebugging: Boolean = false, var payloadOptimization: Boolean = false, var showOval: Boolean = true, var features: MBFeatures = MBFeatures(), var captureConstrains: MBCaptureConstrains = MBCaptureConstrains.V1, var videoCaptureDuration: Int = 1000, var imageQualityLevel: MBImageQualityLevel = MBImageQualityLevel.LEVEL_3)

Builder class for constructing instances of MBCaptureSessionOptions with customizable parameters.

Constructors

Link copied to clipboard
constructor(numberOfFrameToCollect: Int = 3, automaticCapture: Boolean = true, timeBeforeAutomaticCapture: Int = 1, cameraQuality: MBCameraOptions = MBCameraOptions(), isDebugging: Boolean = false, payloadOptimization: Boolean = false, showOval: Boolean = true, features: MBFeatures = MBFeatures(), captureConstrains: MBCaptureConstrains = MBCaptureConstrains.V1, videoCaptureDuration: Int = 1000, imageQualityLevel: MBImageQualityLevel = MBImageQualityLevel.LEVEL_3)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun automaticCapture(enabled: Boolean): <Error class: unknown class>

Enable or disable automatic capture during the session.

Link copied to clipboard

Build an instance of MBCaptureSessionOptions with the configured parameters.

Link copied to clipboard
fun cameraQuality(cameraQuality: MBCameraOptions): <Error class: unknown class>

Set the camera quality options.

Link copied to clipboard
fun captureConstrains(captureConstrains: MBCaptureConstrains): <Error class: unknown class>

Decide the type of face validation is gonna be executed.

Link copied to clipboard
fun debugging(isDebugging: Boolean): <Error class: unknown class>

Enable or disable debugging mode.

Link copied to clipboard
fun framesToCollect(num: Int): <Error class: unknown class>

Set the number of frames to collect during the capture session.

Link copied to clipboard
fun imageQualityLevel(imageQualityLevel: MBImageQualityLevel): <Error class: unknown class>

Set how strict the V3 image-quality lighting gate is. This option has no effect for V1 or V2 capture.

Link copied to clipboard
fun payloadOptimization(payloadOptimization: Boolean): <Error class: unknown class>

Enable or disable payload optimization.

Link copied to clipboard
fun timeBeforeCapture(seconds: Int): <Error class: unknown class>

Set the time delay before automatic capture starts.

Link copied to clipboard
fun videoCaptureDuration(milliseconds: Int): <Error class: unknown class>

Set the total duration (in milliseconds) of the video segment to be captured during the session.