PlaceholderDefaults

object PlaceholderDefaults


Contains the default values used for providing placeholders.

There are two distinct but coordinated aspects to placeholders in Compose for Wear OS. Firstly Modifier.placeholder which is drawn instead of content that is not yet loaded. Secondly a placeholder shimmer effect Modifier.placeholderShimmer effect which runs in an animation loop while waiting for the data to load. Note that besides placeholders, cached content may also be shown while waiting for the data to refresh.

Summary

Public properties

color

Added in 1.0.0-alpha36
val colorColor

Default Color for Modifier.placeholder.

shimmerColor

Added in 1.0.0-alpha36
val shimmerColorColor

Default Color for Modifier.placeholderShimmer.