NestedScrollAware

class NestedScrollAware(val nestedScrollConnection: NestedScrollConnection) : VisibilityState

The element's visibility is determined by a NestedScrollConnection.

This variant is used when the element is part of a nested scroll hierarchy (e.g., a scrollable list inside a scrollable container). The caller provides a NestedScrollConnection that tracks scroll consumption and updates visibility accordingly.

Note: The caller is responsible for creating a NestedScrollConnection that updates visibility state based on scroll consumption. This variant provides the connection as a parameter, but the actual visibility logic must be implemented by the caller or through a helper function.

Parameters

nestedScrollConnection

The NestedScrollConnection used to track nested scroll behavior. The caller should ensure this connection updates visibility state appropriately.

Constructors

Link copied to clipboard
constructor(nestedScrollConnection: NestedScrollConnection)

Properties

Functions

Link copied to clipboard

Returns the current visibility state as a boolean, observing any reactive sources (such as VisibilityState.ScrollAware.scrollState) as needed.