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

Violation

Added in 1.4.0

abstract class Violation : RuntimeException

kotlin.Any
   ↳ kotlin.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ androidx.fragment.app.strictmode.Violation
Known direct subclasses
Known indirect subclasses

Root class for all FragmentStrictMode violations.

Summary

Public properties

Fragment

Gets the Fragment causing the Violation.

Inherited functions

From kotlin.Throwable

Inherited properties

From kotlin.Throwable

Public properties

fragment

Added in 1.4.0
val fragmentFragment

Gets the Fragment causing the Violation.