Class ShimmerPlugin
-
- All Implemented Interfaces:
-
com.skydoves.landscapist.plugins.ImagePlugin,com.skydoves.landscapist.plugins.ImagePlugin.LoadingStatePlugin
@Immutable() public final class ShimmerPlugin implements ImagePlugin.LoadingStatePlugin
Shimmer params holds attributes of the Shimmer composable.
-
-
Method Summary
Modifier and Type Method Description final ColorgetBaseColor()final ColorgetHighlightColor()final DpgetWidth()final FloatgetIntensity()final FloatgetDropOff()final FloatgetTilt()final IntegergetDurationMillis()ImagePlugincompose(Modifier modifier, ImageOptions imageOptions, Function1<IntSize, Unit> executor)-
-
Constructor Detail
-
ShimmerPlugin
ShimmerPlugin(Color baseColor, Color highlightColor, Dp width, Float intensity, Float dropOff, Float tilt, Integer durationMillis)
- Parameters:
baseColor- the base color of the content.highlightColor- the shimmer's highlight color.intensity- adjust the density of the highlight at the center.dropOff- adjust the size of the fading edge of the highlight.tilt- adjust an angle at which the highlight is tilted and measured in degrees.durationMillis- a milli-second time to move the simmering effect from start to finish animation.
-
-
Method Detail
-
getBaseColor
final Color getBaseColor()
-
getHighlightColor
final Color getHighlightColor()
-
getIntensity
final Float getIntensity()
-
getDropOff
final Float getDropOff()
-
getDurationMillis
final Integer getDurationMillis()
-
compose
@Composable() ImagePlugin compose(Modifier modifier, ImageOptions imageOptions, Function1<IntSize, Unit> executor)
-
-
-
-