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

FragmentTagUsageViolation

Added in 1.4.0

public final class FragmentTagUsageViolation extends Violation

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

final ViewGroup

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

Inherited methods

From kotlin.Throwable
From androidx.fragment.app.strictmode.Violation
final @NonNull Fragment

Gets the Fragment causing the Violation.

Public methods

getParentContainer

Added in 1.4.0
public final ViewGroup getParentContainer()

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