FragmentHostCallback.OnShouldSaveFragmentState(Fragment) Method

Definition

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.

Java documentation for android.app.FragmentHostCallback.onShouldSaveFragmentState(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.

Applies to