takePicture

abstract fun takePicture(callback: ImageCaptureCallback): Boolean

Parameters

callback

used to notify capture success or failure

See also


abstract fun takePicture(callback: ImageCaptureCallback, focusBeforeTrigger: Boolean): Boolean

Stop the real-time border detection and capture the image

Return

false if a picture is already being taken, true otherwise

Parameters

callback

used to notify capture success or failure

focusBeforeTrigger

if true, an auto-focus will run before the picture is captured. This can be especially useful on devices where the continuous auto-focus is not great to improve the chances of the picture being sharp, but it slows down the capture.