ShimmerParams

data class ShimmerParams(baseColor: Color, highlightColor: Color, intensity: Float, dropOff: Float, tilt: Float, durationMillis: Int)

Shimmer params holds attributes of the Shimmer composable.

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.

Constructors

ShimmerParams
Link copied to clipboard
fun ShimmerParams(baseColor: Color, highlightColor: Color, intensity: Float = DefaultShimmerIntensity, dropOff: Float = DefaultShimmerDropOff, tilt: Float = DefaultShimmerTilt, durationMillis: Int = DefaultDurationMillis)
the base color of the content.

Properties

baseColor
Link copied to clipboard
val baseColor: Color
the base color of the content.
dropOff
Link copied to clipboard
val dropOff: Float
adjust the size of the fading edge of the highlight.
durationMillis
Link copied to clipboard
val durationMillis: Int
a milli-second time to move the simmering effect from start to finish animation.
highlightColor
Link copied to clipboard
val highlightColor: Color
the shimmer's highlight color.
intensity
Link copied to clipboard
val intensity: Float
adjust the density of the highlight at the center.
tilt
Link copied to clipboard
val tilt: Float
adjust an angle at which the highlight is tilted and measured in degrees.