MBCaptureSessionServiceListener

interface MBCaptureSessionServiceListener

MBCaptureSessionServiceListener is managed for MBCaptureSessionController describing the different stages of the whole capture process

Functions

onCaptureFinished
Link copied to clipboard
abstract fun onCaptureFinished(result: MBCaptureSessionResult?)
onCaptureFinished is executed when the capture session is successfully finished
onCaptureSessionStatusChanged
Link copied to clipboard
abstract fun onCaptureSessionStatusChanged(captureStatus: MBCaptureSessionStatus)
onCaptureSessionStatusChanged is executed every time the capture session status changes
onCaptureStarted
Link copied to clipboard
abstract fun onCaptureStarted()
onCaptureStarted is executed when the capture process starts
onFailure
Link copied to clipboard
abstract fun onFailure(errorEnum: MBCaptureSessionError)
onFailure is be executed for MBCaptureSession class when the camera can not be open or when capture session has been aborted
onValidating
Link copied to clipboard
abstract fun onValidating(faceStatus: MBFaceStatus)
onWaitingToCapture is executed when the status of the face changes