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

SetRetainInstanceUsageViolation

class SetRetainInstanceUsageViolation : RetainInstanceUsageViolation

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

See FragmentStrictMode.Policy.Builder.detectRetainInstanceUsage.

Summary

Inherited functions

From kotlin.Throwable

Inherited properties

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

Gets the Fragment causing the Violation.