Builder

data class Builder(numberOfFrameToCollect: Int, frameInterval: Int, numberOfFramesBeforeCapture: Int, referenceImage: ByteArray, automaticCapture: Boolean, targetResolution: Size, timeBeforeAutomaticCapture: Int, cameraSelector: MBCaptureSessionOptions.MBCameraSelector, scaleType: MBPreviewScaleType)

Functions

automaticCapture
Link copied to clipboard
fun automaticCapture(enabled: Boolean): <ERROR CLASS>
build
Link copied to clipboard
fun build(): MBCaptureSessionOptions
cameraSelector
Link copied to clipboard
fun cameraSelector(camera: MBCaptureSessionOptions.MBCameraSelector): <ERROR CLASS>
frameInterval
Link copied to clipboard
fun frameInterval(interval: Int): <ERROR CLASS>
framesBeforeCapture
Link copied to clipboard
fun framesBeforeCapture(num: Int): <ERROR CLASS>
framesToCollect
Link copied to clipboard
fun framesToCollect(num: Int): <ERROR CLASS>
scaleType
Link copied to clipboard
fun scaleType(scaleType: MBPreviewScaleType): <ERROR CLASS>
targetResolution
Link copied to clipboard
fun targetResolution(resolution: Size): <ERROR CLASS>
timeBeforeCapture
Link copied to clipboard
fun timeBeforeCapture(seconds: Int): <ERROR CLASS>

Properties

automaticCapture
Link copied to clipboard
var automaticCapture: Boolean = true
cameraSelector
Link copied to clipboard
frameInterval
Link copied to clipboard
var frameInterval: Int = 10
numberOfFramesBeforeCapture
Link copied to clipboard
var numberOfFramesBeforeCapture: Int = 10
numberOfFrameToCollect
Link copied to clipboard
var numberOfFrameToCollect: Int = 3
referenceImage
Link copied to clipboard
var referenceImage: ByteArray
scaleType
Link copied to clipboard
var scaleType: MBPreviewScaleType
targetResolution
Link copied to clipboard
var targetResolution: Size
timeBeforeAutomaticCapture
Link copied to clipboard
var timeBeforeAutomaticCapture: Int = 4