onStop

open fun onStop()

Called when the fragment is no longer visible to the user. Pauses rendering and optionally saves the document based on configuration.