Function

isHiddenFromAccessibility

Returns whether the node is hidden from accessibility.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

isHiddenFromAccessibility

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()).