Function

hasScrollToNodeAction

Returns whether the node defines the ability to scroll to content identified by a matcher.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

hasScrollToNodeAction

Common
fun hasScrollToNodeAction() =
    hasKey(SemanticsActions.ScrollToIndex)
        .and(hasKey(SemanticsActions.ScrollBy))
        .and(
            hasKey(SemanticsProperties.HorizontalScrollAxisRange)
                .or(hasKey(SemanticsProperties.VerticalScrollAxisRange))
        )

Returns whether the node defines the ability to scroll to content identified by a matcher.