Android.App.Activity.OnRestoreInstanceState Method
This is the same as Activity.OnRestoreInstanceState(Android.OS.Bundle) but is called for activities created with the attribute NoType:android/R$attr;Href=../../../reference/android/R.attr.html#persistableMode set to persistAcrossReboots.

Syntax

[Android.Runtime.Register("onRestoreInstanceState", "(Landroid/os/Bundle;Landroid/os/PersistableBundle;)V", "GetOnRestoreInstanceState_Landroid_os_Bundle_Landroid_os_PersistableBundle_Handler")]
public virtual void OnRestoreInstanceState (Android.OS.Bundle savedInstanceState, Android.OS.PersistableBundle persistentState)

See Also

Activity.OnRestoreInstanceState(Android.OS.Bundle)
Activity.OnCreate(Android.OS.Bundle)
Activity.OnPostCreate(Android.OS.Bundle)
Activity.OnResume
Activity.OnSaveInstanceState(Android.OS.Bundle)

Parameters

savedInstanceState
the data most recently supplied in Activity.OnSaveInstanceState(Android.OS.Bundle).
persistentState
the data most recently supplied in Activity.OnSaveInstanceState(Android.OS.Bundle).

Remarks

This is the same as Activity.OnRestoreInstanceState(Android.OS.Bundle) but is called for activities created with the attribute NoType:android/R$attr;Href=../../../reference/android/R.attr.html#persistableMode set to persistAcrossReboots. The Android.OS.PersistableBundle passed came from the restored PersistableBundle first saved in Activity.OnSaveInstanceState(Android.OS.Bundle, Android.OS.PersistableBundle).

This method is called between Activity.OnStart and Activity.OnPostCreate(Android.OS.Bundle).

If this method is called Activity.OnRestoreInstanceState(Android.OS.Bundle) will not be called.

[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