setNestedScrollView

fun setNestedScrollView(nestedScrollView: NestedScrollView)

Attaches a NestedScrollView to this floating layout container.

What Attaching Does

  • Scroll Integration: Registers the NestedScrollView (cast as SeslScrollable) with FloatingScrollableManager to observe scroll events (onScrolled, onFastScrollStart, onFastScrollEnd).

  • Auto Show/Hide Transitions: Automatically animates the floating layout's alpha and visibility in response to scrolling content (e.g., hiding when scrolling down past a threshold, showing when scrolling up or idle).

  • Fast Scroll & Go-To-Top Handling: Intercepts fast scrolling events to manage the container's visibility and coordinate the "Go to Top" button state.

  • Blur Invalidation: Automatically triggers background blur target view invalidation as scrolling occurs.

  • Option Propagation: Applies scrollable options such as windowInsetBottom, manageGoToTopOffset, and manageFadingEdgeBottomOffset to FloatingScrollableManager.

Attachment Lifecycle Management

Parameters

nestedScrollView

Target NestedScrollView instance to attach.