MBCaptureSessionService

class MBCaptureSessionService(context: Context, lifecycleOwner: LifecycleOwner, options: MBCaptureSessionOptions, callback: MBCaptureSessionServiceListener)

This is the presenter class that provides the capture service to the caller.

Parameters

context

is an instance of the caller's context needed to implement MBCameraService and MBCaptureSessionView.

lifecycleOwner

is an instance of the caller's life cycle owner needed to implement MBCameraService.

options

represents the capture session's entry point configuration for ist correct functioning.

callback

updates the caller with any change during the whole capture process, including a capture result,

Constructors

MBCaptureSessionService
Link copied to clipboard
fun MBCaptureSessionService(context: Context, lifecycleOwner: LifecycleOwner, options: MBCaptureSessionOptions, callback: MBCaptureSessionServiceListener)
is an instance of the caller's context needed to implement MBCameraService and MBCaptureSessionView.

Functions

getAutomaticCapture
Link copied to clipboard
fun getAutomaticCapture(): Boolean
getCaptureSessionView
Link copied to clipboard
fun getCaptureSessionView(): MBCaptureSessionView
restart
Link copied to clipboard
fun restart()
startCamera
Link copied to clipboard
fun startCamera()
startCaptureSession
Link copied to clipboard
fun startCaptureSession()
Starts capturing frames if the capture process is set to manual.