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

SetUserVisibleHintViolation

Added in 1.4.0

class SetUserVisibleHintViolation : Violation

kotlin.Any
   ↳ 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 properties

Boolean

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

Inherited functions

From kotlin.Throwable

Inherited properties

From kotlin.Throwable
From androidx.fragment.app.strictmode.Violation
Fragment

Gets the Fragment causing the Violation.

Public properties

isVisibleToUser

Added in 1.4.0
val isVisibleToUserBoolean

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