Udostępnij za pośrednictwem


Fragment.SetInitialSavedState(Fragment+SavedState) Method

Definition

Set the initial saved state that this Fragment should restore itself from when first being constructed, as returned by FragmentManager#saveFragmentInstanceState(Fragment) FragmentManager.saveFragmentInstanceState.

[Android.Runtime.Register("setInitialSavedState", "(Landroid/app/Fragment$SavedState;)V", "GetSetInitialSavedState_Landroid_app_Fragment_SavedState_Handler")]
public virtual void SetInitialSavedState (Android.App.Fragment.SavedState? state);
[<Android.Runtime.Register("setInitialSavedState", "(Landroid/app/Fragment$SavedState;)V", "GetSetInitialSavedState_Landroid_app_Fragment_SavedState_Handler")>]
abstract member SetInitialSavedState : Android.App.Fragment.SavedState -> unit
override this.SetInitialSavedState : Android.App.Fragment.SavedState -> unit

Parameters

state
Fragment.SavedState

The state the fragment should be restored from.

Attributes

Remarks

Java documentation for android.app.Fragment.setInitialSavedState(android.app.SavedState).

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