takePicture

abstract fun takePicture(acquireFocus: Boolean)

Takes picture.

This is asynchronous process, so results are reported via IViewCameraCallback. 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.