Package-level declarations

Types

Link copied to clipboard
enum Vibrant : Enum<Vibrant>

Vibrant styles.

Functions

Link copied to clipboard
@Composable
fun animateColorVibrantAsState(targetValue: Color, animationSpec: AnimationSpec<Color> = spring(), label: String = "ColorAnimation", finishedListener: (Color) -> Unit? = null): State<Color>

Animates a Color that possesses a Vibrant style (blending intensity).

Link copied to clipboard
fun Color.containsVibrant(): Boolean

Checks if the Color contains a Vibrant style.

Link copied to clipboard
fun Modifier.observeCurrentVibrantEffect(observer: (vibrant: Vibrant?) -> Unit): Modifier

A utility function that helps you to observe the current vibrant effect.

Link copied to clipboard
fun Color.obtainVibrant(): Vibrant

Decodes the vibrant style from the Color.

Link copied to clipboard
inline fun Vibrant.takeOrElse(block: () -> Vibrant): Vibrant

Return the specified vibrant style if it is specified, otherwise return the default vibrant style.

Link copied to clipboard
fun Modifier.vibrantEffect(vibrant: Vibrant): Modifier

A modifier that make current node and its subsequent node in vibrant render mode.

Link copied to clipboard
fun Color.withVibrant(vibrant: Vibrant): Color

Encodes the specified Vibrant style into the Color.