fun stop(removeAllListeners: Boolean = false): Unit
Stop camera preview and close the device. This is typically called from Activity.onPause.
removeAllListeners
- if true
, removes all listeners previously set. See CameraView.removeAllListeners