Android.App.Activity.OnSaveInstanceState Method
This is the same as Activity.OnSaveInstanceState(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("onSaveInstanceState", "(Landroid/os/Bundle;Landroid/os/PersistableBundle;)V", "GetOnSaveInstanceState_Landroid_os_Bundle_Landroid_os_PersistableBundle_Handler")]
public virtual void OnSaveInstanceState (Android.OS.Bundle outState, Android.OS.PersistableBundle outPersistentState)

See Also

Activity.OnSaveInstanceState(Android.OS.Bundle)
Activity.OnCreate(Android.OS.Bundle)
Activity.OnRestoreInstanceState(Android.OS.Bundle, Android.OS.PersistableBundle)
Activity.OnPause

Parameters

outState
Bundle in which to place your saved state.
outPersistentState
State which will be saved across reboots.

Remarks

This is the same as Activity.OnSaveInstanceState(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 in will be saved and presented in Activity.OnCreate(Android.OS.Bundle, Android.OS.PersistableBundle) the first time that this activity is restarted following the next device reboot.

[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