FragmentManager.SaveFragmentInstanceState(Fragment) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Save the current instance state of the given Fragment.
[Android.Runtime.Register("saveFragmentInstanceState", "(Landroid/app/Fragment;)Landroid/app/Fragment$SavedState;", "GetSaveFragmentInstanceState_Landroid_app_Fragment_Handler")]
public abstract Android.App.Fragment.SavedState? SaveFragmentInstanceState (Android.App.Fragment? f);
[<Android.Runtime.Register("saveFragmentInstanceState", "(Landroid/app/Fragment;)Landroid/app/Fragment$SavedState;", "GetSaveFragmentInstanceState_Landroid_app_Fragment_Handler")>]
abstract member SaveFragmentInstanceState : Android.App.Fragment -> Android.App.Fragment.SavedState
Parameters
- f
- Fragment
The Fragment whose state is to be saved.
Returns
The generated state. This will be null if there was no interesting state created by the fragment.
- Attributes
Remarks
Java documentation for android.app.FragmentManager.saveFragmentInstanceState(android.app.Fragment)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.