View.OnRestoreInstanceState(IParcelable) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- state
- IParcelable
The frozen state that had previously been returned by
#onSaveInstanceState
.
- Attributes
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.
Product | Versions |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |