Android.App.Fragment.RetainInstance Property

Syntax

[get: Android.Runtime.Register("getRetainInstance", "()Z", "GetGetRetainInstanceHandler")]
[set: Android.Runtime.Register("setRetainInstance", "(Z)V", "GetSetRetainInstance_ZHandler")]
public bool RetainInstance { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Get method documentation [Android Documentation]

Set method documentation [Android Documentation]

Control whether a fragment instance is retained across Activity re-creation (such as from a configuration change). This can only be used with fragments not in the back stack. If set, the fragment lifecycle will be slightly different when an activity is recreated:

Requirements

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