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

Violation

Added in 1.4.0

public abstract class Violation extends RuntimeException

java.lang.Object
   ↳ 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 methods

final @NonNull Fragment

Gets the Fragment causing the Violation.

Inherited methods

From kotlin.Throwable

Public methods

getFragment

Added in 1.4.0
public final @NonNull Fragment getFragment()

Gets the Fragment causing the Violation.