- outState
- Bundle in which to place your saved state.
Called to ask the fragment to save its current dynamic state, so it can later be reconstructed in a new instance of its process is restarted. If a new instance of the fragment later needs to be created, the data you place in the Bundle here will be available in the Bundle given to Fragment.OnCreate(Android.OS.Bundle), Fragment.OnCreateView(Android.Views.LayoutInflater, Android.Views.ViewGroup, Android.Views.ViewGroup), and Fragment.OnActivityCreated(Android.OS.Bundle).
This corresponds to Activity.OnSaveInstanceState(Android.OS.Bundle) and most of the discussion there applies here as well. Note however: this method may be called at any time before Fragment.OnDestroy. There are many situations where a fragment may be mostly torn down (such as when placed on the back stack with no UI showing), but its state will not be saved until its owning activity actually needs to save its state.