SwipeRefreshState

@Stable()
class SwipeRefreshState(isRefreshing: Boolean)

A state object that can be hoisted to control and observe changes for SwipeRefresh.

In most cases, this will be created via rememberSwipeRefreshState.

Parameters

isRefreshing

the initial value for SwipeRefreshState.isRefreshing

Constructors

SwipeRefreshState
Link copied to clipboard
fun SwipeRefreshState(isRefreshing: Boolean)
the initial value for SwipeRefreshState.isRefreshing

Properties

indicatorOffset
Link copied to clipboard
val indicatorOffset: Float
The current offset for the indicator, in pixels.
isRefreshing
Link copied to clipboard
var isRefreshing: Boolean
Whether this SwipeRefreshState is currently refreshing or not.
isSwipeInProgress
Link copied to clipboard
var isSwipeInProgress: Boolean
Whether a swipe/drag is currently in progress.