-
@Deprecated(message = accompanist/swiperefresh is deprecated. The androidx.compose equivalent of SwipeRefreshState is PullRefreshState. For more migration information, please visit https://google.github.io/accompanist/swiperefresh/#migration )@Stable() public final class SwipeRefreshState
A state object that can be hoisted to control and observe changes for SwipeRefresh.
In most cases, this will be created via rememberSwipeRefreshState.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanisRefreshingprivate BooleanisSwipeInProgressprivate final FloatindicatorOffset
-
Constructor Summary
Constructors Constructor Description SwipeRefreshState(Boolean isRefreshing)
-
Method Summary
Modifier and Type Method Description final BooleangetIsRefreshing()Whether this SwipeRefreshState is currently refreshing or not. final UnitsetIsRefreshing(Boolean isRefreshing)Whether this SwipeRefreshState is currently refreshing or not. final BooleangetIsSwipeInProgress()Whether a swipe/drag is currently in progress. final UnitsetIsSwipeInProgress(Boolean isSwipeInProgress)final FloatgetIndicatorOffset()-
-
Constructor Detail
-
SwipeRefreshState
SwipeRefreshState(Boolean isRefreshing)
- Parameters:
isRefreshing- the initial value for SwipeRefreshState.isRefreshing
-
-
Method Detail
-
getIsRefreshing
final Boolean getIsRefreshing()
Whether this SwipeRefreshState is currently refreshing or not.
-
setIsRefreshing
final Unit setIsRefreshing(Boolean isRefreshing)
Whether this SwipeRefreshState is currently refreshing or not.
-
getIsSwipeInProgress
final Boolean getIsSwipeInProgress()
Whether a swipe/drag is currently in progress.
-
setIsSwipeInProgress
final Unit setIsSwipeInProgress(Boolean isSwipeInProgress)
-
getIndicatorOffset
final Float getIndicatorOffset()
-
-
-
-