Compartilhar via


Fragment.OnViewStateRestored(Bundle) Method

Definition

Called when all saved state has been restored into the view hierarchy of the fragment.

[Android.Runtime.Register("onViewStateRestored", "(Landroid/os/Bundle;)V", "GetOnViewStateRestored_Landroid_os_Bundle_Handler")]
public virtual void OnViewStateRestored (Android.OS.Bundle? savedInstanceState);
[<Android.Runtime.Register("onViewStateRestored", "(Landroid/os/Bundle;)V", "GetOnViewStateRestored_Landroid_os_Bundle_Handler")>]
abstract member OnViewStateRestored : Android.OS.Bundle -> unit
override this.OnViewStateRestored : Android.OS.Bundle -> unit

Parameters

savedInstanceState
Bundle

If the fragment is being re-created from a previous saved state, this is the state.

Attributes

Remarks

Called when all saved state has been restored into the view hierarchy of the fragment. This can be used to do initialization based on saved state that you are letting the view hierarchy track itself, such as whether check box widgets are currently checked. This is called after #onActivityCreated(Bundle) and before #onStart().

Java documentation for android.app.Fragment.onViewStateRestored(android.os.Bundle).

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