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

WrongFragmentContainerViolation

class WrongFragmentContainerViolation : Violation

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

See FragmentStrictMode.Policy.Builder.detectWrongFragmentContainer.

Summary

Public properties

ViewGroup

Gets the container that the Fragment causing the Violation was being 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

container

val containerViewGroup

Gets the container that the Fragment causing the Violation was being added to.