isHiddenFromAccessibility

Function

Common
fun isHiddenFromAccessibility(): SemanticsMatcher

Returns whether the node is hidden from accessibility.

This only checks if the node itself is hidden from accessibility. To check if it is in a hidden subtree, use hasAnyAncestor(isHiddenFromAccessibility()).