placeholder
/
com.google.accompanist.placeholder
/
PlaceholderHighlight
Placeholder
Highlight
@
Stable
()
interface
PlaceholderHighlight
Content copied to clipboard
A class which provides a brush to paint placeholder based on progress.
Types
Functions
Properties
Types
Companion
Link copied to clipboard
object
Companion
Content copied to clipboard
Functions
alpha
Link copied to clipboard
@
FloatRange
(
from =
0.0.toDouble()
,
to =
1.0.toDouble()
)
abstract fun
alpha
(progress:
Float
):
Float
Content copied to clipboard
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
Content copied to clipboard
Return a
Brush
to draw for the given
progress
and
size
.
Properties
animationSpec
Link copied to clipboard
abstract val
animationSpec
:
InfiniteRepeatableSpec
<
Float
>?
Content copied to clipboard
The optional
AnimationSpec
to use when running the animation for this highlight.