Package-level declarations
Types
Link copied to clipboard
interface ShimmerBounds
Link copied to clipboard
data class ShimmerTheme(val animationSpec: AnimationSpec<Float>, val blendMode: BlendMode, val rotation: Float, val shaderColors: List<Color>, val shaderColorStops: List<Float>?, val shimmerWidth: Dp)
Functions
Link copied to clipboard
fun rememberShimmer(shimmerBounds: ShimmerBounds, theme: ShimmerTheme = LocalShimmerTheme.current): Shimmer
Link copied to clipboard
fun shimmerSpec(durationMillis: Int = DefaultDurationMillis, delayMillis: Int = 0, easing: Easing = LinearEasing): KeyframesSpec<Float>
Creates a KeyframesSpec which animates from 0f to 1f during the time span defined in durationMillis. The additional delayMillis define how long the animation will stay at its final value of 1f before the animation ends. The spec will ignore any initial or target value defined in an Animatable.
Link copied to clipboard
The regular boundsInWindow returns a rect that is clipped by the edges of the window. So if a view is scrolled half way out of the screen, the rect returned would only have half the size required for the shimmer calculations.