Android Guides | Samples

Android.App.Dialog.OnRestoreInstanceState Method

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

Syntax

[Android.Runtime.Register("onRestoreInstanceState", "(Landroid/os/Bundle;)V", "GetOnRestoreInstanceState_Landroid_os_Bundle_Handler")]
public virtual Void OnRestoreInstanceState (Bundle savedInstanceState)

Parameters

savedInstanceState
The state of the dialog previously saved by Dialog.OnSaveInstanceState.

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 Dialog.OnSaveInstanceState, so be sure to call through to super when overriding unless you want to do all restoring of state yourself.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1