Package-level declarations

Types

Link copied to clipboard

Contains default values used by Modifier.placeholder and PlaceholderHighlight.

Link copied to clipboard

A class which provides a brush to paint placeholder based on progress.

Functions

Link copied to clipboard
fun PlaceholderHighlight.Companion.fade(highlightColor: <Error class: unknown class>, animationSpec: <Error class: unknown class><Float> = PlaceholderDefaults.fadeAnimationSpec): PlaceholderHighlight

Creates a Fade brush with the given initial and target colors.

Link copied to clipboard
fun <Error class: unknown class>.placeholder(visible: Boolean, color: <Error class: unknown class>, shape: <Error class: unknown class> = RectangleShape, highlight: PlaceholderHighlight? = null, placeholderFadeTransitionSpec: <Error class: unknown class><Boolean>.() -> <Error class: unknown class><Float> = { spring() }, contentFadeTransitionSpec: <Error class: unknown class><Boolean>.() -> <Error class: unknown class><Float> = { spring() }): <Error class: unknown class>

Draws some skeleton UI which is typically used whilst content is 'loading'.

Link copied to clipboard
fun PlaceholderHighlight.Companion.shimmer(highlightColor: <Error class: unknown class>, animationSpec: <Error class: unknown class><Float> = PlaceholderDefaults.shimmerAnimationSpec, progressForMaxAlpha: Float = 0.6f): PlaceholderHighlight

Creates a PlaceholderHighlight which 'shimmers', using the given highlightColor.