Android.App.Activity.LastNonConfigurationInstance Property
Retrieve the non-configuration instance data that was previously returned by Activity.OnRetainNonConfigurationInstance.

Syntax

[System.Obsolete("deprecated")]
[get: Android.Runtime.Register("getLastNonConfigurationInstance", "()Ljava/lang/Object;", "GetGetLastNonConfigurationInstanceHandler")]
public virtual Java.Lang.Object LastNonConfigurationInstance { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Retrieve the non-configuration instance data that was previously returned by Activity.OnRetainNonConfigurationInstance. This will be available from the initial Activity.OnCreate(Android.OS.Bundle) and Activity.OnStart calls to the new instance, allowing you to extract any useful dynamic state from the previous instance.

Note that the data you retrieve here should only be used as an optimization for handling configuration changes. You should always be able to handle getting a null pointer back, and an activity must still be able to restore itself to its previous state (through the normal Activity.OnSaveInstanceState(Android.OS.Bundle) mechanism) even if this function returns null.

[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