blob: 98036e38f423117b0915228fede395978d21c356 [file] [log] [blame]
<html devsite="true">
<head>
<title>FragmentReuseViolation</title>
{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %}
{% include "_shared/_reference-head-tags.html" %}
</head>
<body>
<div id="metadata-info-block"></div>
<h1>FragmentReuseViolation</h1>
<p>
<pre>class <a href="/reference/kotlin/androidx/fragment/app/strictmode/FragmentReuseViolation.html">FragmentReuseViolation</a> : <a href="/reference/kotlin/androidx/fragment/app/strictmode/Violation.html">Violation</a></pre>
</p>
<div class="devsite-table-wrapper">
<table class="jd-inheritance-table">
<tbody>
<tr>
<td colspan="6"><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">kotlin.Any</a></td>
</tr>
<tr>
<td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;↳</td>
<td colspan="5"><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">kotlin.Throwable</a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;↳</td>
<td colspan="4"><a href="https://developer.android.com/reference/java/lang/Exception.html">java.lang.Exception</a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;↳</td>
<td colspan="3"><a href="https://developer.android.com/reference/java/lang/RuntimeException.html">java.lang.RuntimeException</a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;↳</td>
<td colspan="2"><a href="/reference/kotlin/androidx/fragment/app/strictmode/Violation.html">androidx.fragment.app.strictmode.Violation</a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;↳</td>
<td colspan="1"><a href="/reference/kotlin/androidx/fragment/app/strictmode/FragmentReuseViolation.html">androidx.fragment.app.strictmode.FragmentReuseViolation</a></td>
</tr>
</tbody>
</table>
</div>
<hr>
<p>See <code><a href="/reference/kotlin/androidx/fragment/app/strictmode/FragmentStrictMode.Policy.Builder.html#detectFragmentReuse()">FragmentStrictMode.Policy.Builder.detectFragmentReuse</a></code>.</p>
<h2>Summary</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="100%"><h3>Public properties</h3></th>
</tr>
</thead>
<tbody class="list">
<tr>
<td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a></code></td>
<td>
<div><code><a href="/reference/kotlin/androidx/fragment/app/strictmode/FragmentReuseViolation.html#previousFragmentId()">previousFragmentId</a></code></div>
<p>Gets the unique ID of the previous instance of the <code><a href="/reference/kotlin/androidx/fragment/app/Fragment.html">Fragment</a></code> causing the Violation.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive" id="inhmethods">
<thead>
<tr>
<th colspan="100%"><h3>Inherited functions</h3></th>
</tr>
</thead>
<tbody class="list">
<tr>
<td><devsite-expandable><span class="expand-control">From <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">kotlin.Throwable</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody class="list">
<tr>
<td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></code></td>
<td>
<div><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/add-suppressed.html">addSuppressed</a>(p0:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a>)</code></div>
</td>
</tr>
<tr>
<td width="40%"><code>open <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a></code></td>
<td>
<div><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/fill-in-stack-trace.html">fillInStackTrace</a>()</code></div>
</td>
</tr>
<tr>
<td width="40%"><code>open <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a></code></td>
<td>
<div><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/get-localized-message.html">getLocalizedMessage</a>()</code></div>
</td>
</tr>
<tr>
<td width="40%"><code>open <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a>&lt;<a href="https://developer.android.com/reference/java/lang/StackTraceElement.html">StackTraceElement</a>&gt;</code></td>
<td>
<div><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/get-stack-trace.html">getStackTrace</a>()</code></div>
</td>
</tr>
<tr>
<td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a>&gt;</code></td>
<td>
<div><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/get-suppressed.html">getSuppressed</a>()</code></div>
</td>
</tr>
<tr>
<td width="40%"><code>open <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a></code></td>
<td>
<div><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/init-cause.html">initCause</a>(p0:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a>)</code></div>
</td>
</tr>
<tr>
<td width="40%"><code>open <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></code></td>
<td>
<div><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/print-stack-trace.html">printStackTrace</a>()</code></div>
</td>
</tr>
<tr>
<td width="40%"><code>open <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></code></td>
<td>
<div><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/print-stack-trace.html">printStackTrace</a>(p0:&nbsp;<a href="https://developer.android.com/reference/java/io/PrintStream.html">PrintStream</a>)</code></div>
</td>
</tr>
<tr>
<td width="40%"><code>open <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></code></td>
<td>
<div><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/print-stack-trace.html">printStackTrace</a>(p0:&nbsp;<a href="https://developer.android.com/reference/java/io/PrintWriter.html">PrintWriter</a>)</code></div>
</td>
</tr>
<tr>
<td width="40%"><code>open <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></code></td>
<td>
<div><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/set-stack-trace.html">setStackTrace</a>(p0:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a>&lt;<a href="https://developer.android.com/reference/java/lang/StackTraceElement.html">StackTraceElement</a>&gt;)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive" id="inhmethods">
<thead>
<tr>
<th colspan="100%"><h3>Inherited properties</h3></th>
</tr>
</thead>
<tbody class="list">
<tr>
<td><devsite-expandable><span class="expand-control">From <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">kotlin.Throwable</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody class="list">
<tr>
<td width="40%"><code>open <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a>?</code></td>
<td>
<div><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/cause.html">cause</a></code></div>
</td>
</tr>
<tr>
<td width="40%"><code>open <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?</code></td>
<td>
<div><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/message.html">message</a></code></div>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
<tr>
<td><devsite-expandable><span class="expand-control">From <a href="/reference/kotlin/androidx/fragment/app/strictmode/Violation.html">androidx.fragment.app.strictmode.Violation</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody class="list">
<tr>
<td width="40%"><code><a href="/reference/kotlin/androidx/fragment/app/Fragment.html">Fragment</a></code></td>
<td>
<div><code><a href="/reference/kotlin/androidx/fragment/app/strictmode/Violation.html#fragment()">fragment</a></code></div>
<p>Gets the <code><a href="/reference/kotlin/androidx/fragment/app/Fragment.html">Fragment</a></code> causing the Violation.</p>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
</tbody>
</table>
</div>
<h2>Public properties</h2>
<div><a name="getPreviousFragmentId()"></a><a name="setPreviousFragmentId()"></a><a name="getPreviousFragmentId--"></a><a name="setPreviousFragmentId--"></a>
<h3 class="api-name" id="previousFragmentId()">previousFragmentId</h3>
<pre class="api-signature no-pretty-print">val&nbsp;<a href="/reference/kotlin/androidx/fragment/app/strictmode/FragmentReuseViolation.html#previousFragmentId()">previousFragmentId</a>:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a></pre>
<p>Gets the unique ID of the previous instance of the <code><a href="/reference/kotlin/androidx/fragment/app/Fragment.html">Fragment</a></code> causing the Violation.</p>
</div>
</body>
</html>