PlaceholderHighlight

Deprecated

accompanist/placeholder is deprecated and the API is no longer maintained. We recommend forking the implementation and customising it to your needs. For more information please visit https://google.github.io/accompanist/placeholder

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val animationSpec: <Error class: unknown class><Float>?

The optional AnimationSpec to use when running the animation for this highlight.

Functions

Link copied to clipboard
abstract fun alpha(progress: Float): Float

Return the desired alpha value used for drawing the Brush returned from brush.

Link copied to clipboard
abstract fun brush(progress: Float, size: <Error class: unknown class>): <Error class: unknown class>

Return a Brush to draw for the given progress and size.