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

SetUserVisibleHintViolation

Added in 1.4.0

public final class SetUserVisibleHintViolation extends Violation

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

See FragmentStrictMode.Policy.Builder.detectSetUserVisibleHint.

Summary

Public methods

final boolean

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

Inherited methods

From kotlin.Throwable
From androidx.fragment.app.strictmode.Violation
final @NonNull Fragment

Gets the Fragment causing the Violation.

Public methods

isVisibleToUser

Added in 1.4.0
public final boolean isVisibleToUser()

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