BaseAutoSnappingController

Base IAutoSnappingController implementation, that is, in theory, to suffice any scenario needs.

This class wraps all device- and camera's lifecycle-specific code, as well as two conditions validation - significant move timeout and capture interval timeout.

See also

Inheritors

Constructors

Link copied to clipboard
constructor(cameraView: IScanbotCameraView)

Properties

Link copied to clipboard

Flag to disable autosnapping processing. In case of false frames will be skipped.

Functions

Link copied to clipboard
fun cleanup()

Cleanup all resources and listeners. Necessary for compose navigation patterns.

Link copied to clipboard
abstract fun detach()

Allows to detach successor implementation class. To be called in place of usage when screen hierarchy is being destroyed.

Link copied to clipboard
fun setForceAutofocusBeforeSnap(forceAutofocusBeforeSnap: Boolean)
Link copied to clipboard
fun setSensitivity(sensitivity: Float)

Changes sensitivity of auto-snapping. That is: the more sensitive it is the faster it shoots.

Link copied to clipboard

Allows to enable or disable shake detection before autosnapping. It will wait for 2 seconds of stable values from accelerometer before taking a picture. Default is true

Link copied to clipboard
open override fun trySnap(parameter: T)

Start conditions evaluation and, maybe, take a snap, e.g. depending on current image status, snap interval etc.