onPause

abstract fun onPause()

Notifies view that enclosing android.app.Activity or android.app.Fragment was paused and therefore camera must be closed.

For CameraX approach this call is redundant and may be skipped