PullToRefreshState

class PullToRefreshState(coroutineScope: CoroutineScope)

A UI state holder for the PullToRefresh composable.

This class manages the internal state machine for animations and nested scroll interactions, driven by the hoisted isRefreshing boolean.

Parameters

coroutineScope

A CoroutineScope used to launch animations and state updates.

Constructors

Link copied to clipboard
constructor(coroutineScope: CoroutineScope)

Properties

Link copied to clipboard

Cached NestedScrollConnection to avoid creating new instances on every scroll event.

Link copied to clipboard

The drag offset in pixels.

Link copied to clipboard

The progress of the pull gesture, from 0.0 to 1.0, until the threshold is reached.

Link copied to clipboard

The current visual RefreshState of the component.