OverscrollConfiguration

Class

Android

Deprecated Providing OverscrollConfiguration through LocalOverscrollConfiguration to disable / configure overscroll has been replaced with LocalOverscrollFactory and rememberPlatformOverscrollFactory. To disable overscroll, instead of LocalOverscrollConfiguration provides null, use LocalOverscrollFactory provides null. To change the glow color / padding, instead of LocalOverscrollConfiguration provides OverscrollConfiguration(myColor, myPadding), use LocalOverscrollFactory 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

glowColorcolor for the glow effect, if the platform effect is a glow effect, otherwise ignored.
drawPaddingthe 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.