Dialog.OnRestoreInstanceState(Bundle) Method

Definition

Restore the state of the dialog from a previously saved bundle.

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

Parameters

savedInstanceState
Bundle

The state of the dialog previously saved by #onSaveInstanceState().

Attributes

Remarks

Restore the state of the dialog from a previously saved bundle.

The default implementation restores the state of the dialog's view hierarchy that was saved in the default implementation of #onSaveInstanceState(), so be sure to call through to super when overriding unless you want to do all restoring of state yourself.

Java documentation for android.app.Dialog.onRestoreInstanceState(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