Google is committed to advancing racial equity for Black communities. See how.

MutatePriority

enum class MutatePriority
kotlin.Any
   ↳ kotlin.Enum<androidx.compose.foundation.MutatePriority>
   ↳ androidx.compose.foundation.MutatePriority

Priorities for performing mutation on state.

MutatePriority values follow the natural ordering of enum class values; a value that compares as > to another has a higher priority. A mutation of equal or greater priority will interrupt the current mutation in progress.

Summary

Enum values

The default priority for mutations.

A high-priority mutation that can only be interrupted by other PreventUserInput priority operations.

An elevated priority for mutations meant for implementing direct user interactions.

Inherited extension functions
From androidx.core.util
infix Range<T>
T.rangeTo(that: T)

Creates a range from this Comparable value to that.

Enum values

Default

enum val Default : MutatePriority

The default priority for mutations. Can be interrupted by other Default, UserInput or PreventUserInput priority operations. Default priority should be used for programmatic animations or changes that should not interrupt user input.

PreventUserInput

enum val PreventUserInput : MutatePriority

A high-priority mutation that can only be interrupted by other PreventUserInput priority operations. PreventUserInput priority should be used for operations that user input should not be able to interrupt.

UserInput

enum val UserInput : MutatePriority

An elevated priority for mutations meant for implementing direct user interactions. Can be interrupted by other UserInput or PreventUserInput priority operations.