Package-level declarations

Types

Link copied to clipboard
data class UltraSwipeRefreshConfig(val headerScrollMode: NestedScrollMode = NestedScrollMode.Translate, val footerScrollMode: NestedScrollMode = NestedScrollMode.Translate, val refreshEnabled: Boolean = true, val loadMoreEnabled: Boolean = true, @FloatRange(from = 0.0, fromInclusive = false) val refreshTriggerRate: Float = 1.0f, @FloatRange(from = 0.0, fromInclusive = false) val loadMoreTriggerRate: Float = 1.0f, @FloatRange(from = 1.0) val headerMaxOffsetRate: Float = 2.0f, @FloatRange(from = 1.0) val footerMaxOffsetRate: Float = 2.0f, @FloatRange(from = 0.0, to = 1.0, fromInclusive = false) val dragMultiplier: Float = 0.5f, @IntRange(from = 0, to = 2000) val finishDelayMillis: Long = 500, val vibrateEnabled: Boolean = false, val alwaysScrollable: Boolean = false, val headerIndicator: @Composable (UltraSwipeRefreshState) -> Unit = { SwipeRefreshHeader(it) }, val footerIndicator: @Composable (UltraSwipeRefreshState) -> Unit = { SwipeRefreshFooter(it) }, val contentContainer: @Composable (@Composable () -> Unit) -> Unit = { NoOverscrollEffect(it) })
Link copied to clipboard

UltraSwipeRefresh主题:主要用于统一管理全局默认配置。 通常情况下,一个App使用的刷新样式是统一的,如果你需要进行全局统一刷新组件的样式时, 可以通过UltraSwipeRefreshTheme.config来动态修改UltraSwipeRefresh的全局默认配置。