Compartilhar via


View.OnRestoreInstanceState(IParcelable) Method

Definition

Hook allowing a view to re-apply a representation of its internal state that had previously been generated by #onSaveInstanceState.

[Android.Runtime.Register("onRestoreInstanceState", "(Landroid/os/Parcelable;)V", "GetOnRestoreInstanceState_Landroid_os_Parcelable_Handler")]
protected virtual void OnRestoreInstanceState (Android.OS.IParcelable? state);
[<Android.Runtime.Register("onRestoreInstanceState", "(Landroid/os/Parcelable;)V", "GetOnRestoreInstanceState_Landroid_os_Parcelable_Handler")>]
abstract member OnRestoreInstanceState : Android.OS.IParcelable -> unit
override this.OnRestoreInstanceState : Android.OS.IParcelable -> unit

Parameters

state
IParcelable

The frozen state that had previously been returned by #onSaveInstanceState.

Attributes

Remarks

Hook allowing a view to re-apply a representation of its internal state that had previously been generated by #onSaveInstanceState. This function will never be called with a null state.

Java documentation for android.view.View.onRestoreInstanceState(android.os.Parcelable).

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

See also