{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

FragmentReuseViolation

class FragmentReuseViolation : Violation

kotlin.Any
   ↳ kotlin.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ androidx.fragment.app.strictmode.Violation
           ↳ androidx.fragment.app.strictmode.FragmentReuseViolation

See FragmentStrictMode.Policy.Builder.detectFragmentReuse.

Summary

Public properties

String

Gets the unique ID of the previous instance of the Fragment causing the Violation.

Inherited functions

From kotlin.Throwable

Inherited properties

From kotlin.Throwable
From androidx.fragment.app.strictmode.Violation
Fragment

Gets the Fragment causing the Violation.

Public properties

previousFragmentId

val previousFragmentIdString

Gets the unique ID of the previous instance of the Fragment causing the Violation.