Function

dispatchOnScrollChanged

Call this function whenever a scroll chang happened in the LayoutNode that this DelegatableNode is attached to to let the underlying platform know that a scroll event happened in this LayoutNode.

dispatchOnScrollChanged

Source set: Common
public fun DelegatableNode.dispatchOnScrollChanged(delta: Offset): Unit

Call this function whenever a scroll chang happened in the LayoutNode that this DelegatableNode is attached to to let the underlying platform know that a scroll event happened in this LayoutNode.

On Android, this triggers a ViewTreeObserver onScrollChanged callback. It also reports the pixel delta on TYPE_VIEW_SCROLLED accessibility events.

Parameters

delta the scroll delta this node consumed, in pointer coordinates. Positive x or y means the content moved right or down on screen.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: