stopPreview

@UiThread
abstract fun stopPreview()

This method should be called on pausing the activity. It will pause the frame grabbing, pause the focus and accelerometer management and it will close the camera to save power.