SetUserVisibleHintViolation

public final class SetUserVisibleHintViolation extends Violation


See FragmentStrictMode.Policy.Builder.detectSetUserVisibleHint.

Summary

Public fields

@Nullable Throwable
final @NonNull Fragment

Gets the Fragment causing the Violation.

final boolean

Indicates what the isVisibleToUser field for the Fragment causing the Violation was being set to.

@Nullable String

Public fields

cause

@Nullable
public @Nullable Throwable cause

fragment

@NonNull
public final @NonNull Fragment fragment

Gets the Fragment causing the Violation.

isVisibleToUser

@NonNull
public final boolean isVisibleToUser

Indicates what the isVisibleToUser field for the Fragment causing the Violation was being set to.

message

@Nullable
public @Nullable String message