Partager via


FragmentController.RestoreAllState Method

Definition

Overloads

RestoreAllState(IParcelable, FragmentManagerNonConfig)

Restores the saved state for all Fragments.

RestoreAllState(IParcelable, IList<Fragment>)

Restores the saved state for all Fragments.

RestoreAllState(IParcelable, FragmentManagerNonConfig)

Restores the saved state for all Fragments.

[Android.Runtime.Register("restoreAllState", "(Landroid/os/Parcelable;Landroid/app/FragmentManagerNonConfig;)V", "GetRestoreAllState_Landroid_os_Parcelable_Landroid_app_FragmentManagerNonConfig_Handler", ApiSince=24)]
public virtual void RestoreAllState (Android.OS.IParcelable? state, Android.App.FragmentManagerNonConfig? nonConfig);
[<Android.Runtime.Register("restoreAllState", "(Landroid/os/Parcelable;Landroid/app/FragmentManagerNonConfig;)V", "GetRestoreAllState_Landroid_os_Parcelable_Landroid_app_FragmentManagerNonConfig_Handler", ApiSince=24)>]
abstract member RestoreAllState : Android.OS.IParcelable * Android.App.FragmentManagerNonConfig -> unit
override this.RestoreAllState : Android.OS.IParcelable * Android.App.FragmentManagerNonConfig -> unit

Parameters

state
IParcelable
Attributes

Remarks

Restores the saved state for all Fragments. The given FragmentManagerNonConfig are Fragment instances retained across configuration changes, including nested fragments

Java documentation for android.app.FragmentController.restoreAllState(android.os.Parcelable, android.app.FragmentManagerNonConfig).

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

RestoreAllState(IParcelable, IList<Fragment>)

Restores the saved state for all Fragments.

[Android.Runtime.Register("restoreAllState", "(Landroid/os/Parcelable;Ljava/util/List;)V", "GetRestoreAllState_Landroid_os_Parcelable_Ljava_util_List_Handler", ApiSince=23)]
public virtual void RestoreAllState (Android.OS.IParcelable? state, System.Collections.Generic.IList<Android.App.Fragment>? nonConfigList);
[<Android.Runtime.Register("restoreAllState", "(Landroid/os/Parcelable;Ljava/util/List;)V", "GetRestoreAllState_Landroid_os_Parcelable_Ljava_util_List_Handler", ApiSince=23)>]
abstract member RestoreAllState : Android.OS.IParcelable * System.Collections.Generic.IList<Android.App.Fragment> -> unit
override this.RestoreAllState : Android.OS.IParcelable * System.Collections.Generic.IList<Android.App.Fragment> -> unit

Parameters

state
IParcelable
nonConfigList
IList<Fragment>
Attributes

Remarks

Restores the saved state for all Fragments. The given Fragment list are Fragment instances retained across configuration changes.

This member is deprecated. use #restoreAllState(Parcelable, FragmentManagerNonConfig)

Java documentation for android.app.FragmentController.restoreAllState(android.os.Parcelable, java.util.List<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