Function

hasScrollToIndexAction

Returns whether the node defines the ability to scroll to an item index.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

hasScrollToIndexAction

Common
fun hasScrollToIndexAction() = hasKey(SemanticsActions.ScrollToIndex)

Returns whether the node defines the ability to scroll to an item index.

Note that not all scrollable containers have item indices. For example, a scrollable doesn't have items with an index, while LazyColumn does.