WrongFragmentContainerViolation

public final class WrongFragmentContainerViolation
extends Violation

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


See #FragmentStrictMode.Policy.Builder.detectWrongFragmentContainer().

Summary

Public methods

ViewGroup getContainer()

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

String getMessage()

Inherited methods

Public methods

getContainer

public ViewGroup getContainer ()

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

Returns
ViewGroup

getMessage

public String getMessage ()

Returns
String