onSaveInstanceState

open override fun onSaveInstanceState(outState: Bundle)

Provides a Bundle to store the state of the Fragment before it gets destroyed. It can later be retrieved when onCreate(Bundle) is called again.