takePicture

abstract fun takePicture(acquireFocus: Boolean)

Takes picture.

This is asynchronous process, so results are reported via PictureCallback added in addPictureCallback. If snapping process is still going all subsequent calls to takePicture are ignored.

After picture is taken, camera preview is stopped. If you wish it continue, use startPreview If view is paused, this call is ignored.

Parameters

acquireFocus

true to perform auto-focus before shooting. false to shoot as fast as possible using current camera state.


abstract fun takePicture(acquireFocus: Boolean, isCapturedAutomatically: Boolean)

Takes picture.

This is asynchronous process, so results are reported via PictureCallback added in addPictureCallback. If snapping process is still going all subsequent calls to takePicture are ignored.

After picture is taken, camera preview is stopped. If you wish it continue, use startPreview If view is paused, this call is ignored.

Parameters

acquireFocus

true to perform auto-focus before shooting. false to shoot as fast as possible using current camera state.

isCapturedAutomatically

allows to define if the picture was taken automatically by any of AutoSnappingController. This flag will be passed to PictureCallback