typealias OnPullToCollapseInterceptor = (downX: Float, downY: Float, upwardPull: Boolean) -> InterceptResult
Called once every time a vertical scroll gesture is registered on ExpandablePageLayout. When intercepted, all touch events until the finger is lifted will be ignored. This is useful when nested (vertically) scrollable layouts are also present inside the page.
Example usage:
val directionInt = if (upwardPull) +1 else -1
val canScrollFurther = scrollableChild.canScrollVertically(directionInt)
return if (canScrollFurther) InterceptResult.INTERCEPTED else InterceptResult.IGNORED
downX - X-coordinate from where the gesture started, relative to the screen window.
downY - Y-coordinate from where the gesture started, relative to the screen window.
upwardPull - Upward pull == downward scroll and vice versa.
Return
True to consume this touch event. False otherwise.