onPause

fun onPause()

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