ICameraViewController

Base interface class for the Classical components View to control the behavior and trigger actions

Inheritors

Functions

Link copied to clipboard
abstract fun continuousFocus()

Cancels auto-focus and performs continuous-focus. Should be executed from the main thread and when camera is opened

Link copied to clipboard
abstract fun restartPreview()

Restarts preview stream.

Link copied to clipboard
abstract fun setLifecycleOwner(lifecycleOwner: <Error class: unknown class>)

Sets LifecycleOwner for CameraX view. This is required to properly handle CameraX lifecycle.

Link copied to clipboard
abstract fun startPreview()

Starts/resumes camera preview stream. Usually used after picture was taken.

Link copied to clipboard
abstract fun stopPreview()

Stops camera preview stream.

Link copied to clipboard
abstract fun takePicture(acquireFocus: Boolean)

Takes picture.

Link copied to clipboard
abstract fun useFlash(flash: Boolean)

Enables or disables camera flash.