onPause

open fun onPause()

You must call this method from the parent's Activity#onPause() or Fragment#onPause().