🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

invisibleToUser

Whether this node is specially known to be invisible to the user.

invisibleToUser

Source set: Common
@Deprecated(
    "Use `hideFromAccessibility()` instead.",
    replaceWith = ReplaceWith("hideFromAccessibility()"),
)
// Retain for binary compatibility with aosp/3341487 in 1.7
public fun SemanticsPropertyReceiver.invisibleToUser(): Unit

Whether this node is specially known to be invisible to the user.

For example, if the node is currently occluded by a dark semitransparent pane above it, then for all practical purposes the node is invisible to the user, but the system cannot automatically determine that. To make the screen reader linear navigation skip over this type of invisible node, this property can be set.

If looking for a way to hide semantics of small items from screen readers because they're redundant with semantics of their parent, consider SemanticsModifier.clearAndSetSemantics instead.

Content updated: