Package-level declarations

Types

Link copied to clipboard
enum Vibrant : Enum<Vibrant>

Vibrant styles.

Functions

Link copied to clipboard
fun Modifier.background(vibrant: Vibrant, color: Color = Color.Vibrant, shape: Shape = RectangleShape): Modifier

A background modifier that supports vibrant effect style. Be noticed that this modifier will terminate the current vibrant effect.

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
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.terminateVibrantEffect(): Modifier

Terminate the current vibrant effect. Terminate effect means that current node and its subsequent node and child views will be rendered in normal android mode. Calling this method is equivalent to call Modifier.vibrantEffect with Vibrant.Termination.

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

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