Function

dispatchOnScrollChanged

dispatchOnScrollChanged

Source set: Android
override fun dispatchOnScrollChanged(delta: Offset)

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 will trigger a ViewTreeObserver onScrollChanged callback.

Parameters

delta The scroll delta that was consumed by this node.
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: