WrongFragmentContainerViolation

public final class WrongFragmentContainerViolation extends Violation


See FragmentStrictMode.Policy.Builder.detectWrongFragmentContainer.

Summary

Public fields

@Nullable Throwable
final @NonNull ViewGroup

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

final @NonNull Fragment

Gets the Fragment causing the Violation.

@Nullable String

Public fields

cause

@Nullable
public @Nullable Throwable cause

container

@NonNull
public final @NonNull ViewGroup container

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

fragment

@NonNull
public final @NonNull Fragment fragment

Gets the Fragment causing the Violation.

message

@Nullable
public @Nullable String message