blob: 49026546dced2c93117873c4e3b26f571f2f0087 [file] [log] [blame]
<html devsite="true">
<head>
<title>FragmentManagerNonConfig</title>
{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %}
{% include "_shared/_reference-head-tags.html" %}
</head>
<body>
<h1>FragmentManagerNonConfig</h1>
{% setvar page_path %}androidx/fragment/app/FragmentManagerNonConfig.html{% endsetvar %}
{% setvar can_switch %}1{% endsetvar %}
{% include "reference/_kotlin_switcher2.md" %}
<p>
<pre>class FragmentManagerNonConfig</pre>
</p>
<hr>
<aside class="caution"><strong>This class is deprecated.</strong><br>
<p>Have your <code><a href="/reference/kotlin/androidx/fragment/app/FragmentHostCallback.html">FragmentHostCallback</a></code> implement androidx.lifecycle.ViewModelStoreOwner to automatically retain the Fragment's non configuration state.</p>
</aside>
<p>FragmentManagerNonConfig stores the retained instance fragments across activity recreation events. </p>
<p>Apps should treat objects of this type as opaque, returned by and passed to the state save and restore process for fragments in <code><a href="/reference/kotlin/androidx/fragment/app/FragmentController.html#retainNestedNonConfig()">FragmentController#retainNestedNonConfig()</a></code> and <code><a href="/reference/kotlin/androidx/fragment/app/FragmentController.html#restoreAllState(android.os.Parcelable,androidx.fragment.app.FragmentManagerNonConfig)">FragmentController#restoreAllState(Parcelable, FragmentManagerNonConfig)</a></code>.</p>
<h2>Summary</h2>
</body>
</html>