PlaceholderHighlight

@Stable()
interface PlaceholderHighlight

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

Types

Companion
Link copied to clipboard
object Companion

Functions

alpha
Link copied to clipboard
@FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble())
abstract fun alpha(progress: Float): Float
Return the desired alpha value used for drawing the Brush returned from brush.
brush
Link copied to clipboard
abstract fun brush(@FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble()progress: Float, size: Size): Brush
Return a Brush to draw for the given progress and size.

Properties

animationSpec
Link copied to clipboard
abstract val animationSpec: InfiniteRepeatableSpec<Float>?
The optional AnimationSpec to use when running the animation for this highlight.