WrongNestedHierarchyViolation


public final class WrongNestedHierarchyViolation extends Violation


See FragmentStrictMode.Policy.Builder.detectWrongNestedHierarchy.

Summary

Public methods

final int

Gets the unique ID of the container that the Fragment causing the Violation would have been added to.

final @NonNull Fragment

Gets the expected parent Fragment of the fragment causing the Violation.

Public methods

getContainerId

Added in 1.6.0
public final int getContainerId()

Gets the unique ID of the container that the Fragment causing the Violation would have been added to.

getExpectedParentFragment

Added in 1.6.0
public final @NonNull Fragment getExpectedParentFragment()

Gets the expected parent Fragment of the fragment causing the Violation.