FragmentHostCallback.OnShouldSaveFragmentState(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.
Return true
if the fragment's state needs to be saved.
[Android.Runtime.Register("onShouldSaveFragmentState", "(Landroid/app/Fragment;)Z", "GetOnShouldSaveFragmentState_Landroid_app_Fragment_Handler", ApiSince=23)]
public virtual bool OnShouldSaveFragmentState (Android.App.Fragment? fragment);
[<Android.Runtime.Register("onShouldSaveFragmentState", "(Landroid/app/Fragment;)Z", "GetOnShouldSaveFragmentState_Landroid_app_Fragment_Handler", ApiSince=23)>]
abstract member OnShouldSaveFragmentState : Android.App.Fragment -> bool
override this.OnShouldSaveFragmentState : Android.App.Fragment -> bool
Parameters
- fragment
- Fragment
Returns
- Attributes
Remarks
Return true
if the fragment's state needs to be saved.
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.