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

FragmentTagUsageViolation

Added in 1.4.0

class FragmentTagUsageViolation : Violation

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

See FragmentStrictMode.Policy.Builder.detectFragmentTagUsage.

Summary

Public properties

ViewGroup?

Gets the parent container that the Fragment causing the Violation would have been added to.

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

parentContainer

Added in 1.4.0
val parentContainerViewGroup?

Gets the parent container that the Fragment causing the Violation would have been added to.