OverscrollConfiguration
Class
Android
Deprecated Providing
OverscrollConfiguration
throughLocalOverscrollConfiguration
to disable / configure overscroll has been replaced withLocalOverscrollFactory
andrememberPlatformOverscrollFactory
. To disable overscroll, instead ofLocalOverscrollConfiguration provides null
, useLocalOverscrollFactory provides null
. To change the glow color / padding, instead ofLocalOverscrollConfiguration provides OverscrollConfiguration(myColor, myPadding)
, useLocalOverscrollFactory provides rememberPlatformOverscrollFactory(myColor, myPadding)
@ExperimentalFoundationApi
class OverscrollConfiguration(
val glowColor: Color = Color(0xff666666), // taken from EdgeEffect.java defaults
val drawPadding: PaddingValues = PaddingValues(),
)
Metadata for overscroll effects for android platform.
Parameters
glowColor | color for the glow effect, if the platform effect is a glow effect, otherwise ignored. |
drawPadding | the amount of padding to apply from scrollable container bounds to the effect before drawing it, if the platform effect is a glow effect, otherwise ignored. |