androidx.compose.runtime.annotation

The androidx.compose.runtime.annotation package provides annotations used by the compiler and tooling. These annotations are published in a separate library to allow using these annotations in modules that do not depend on Compose Runtime, but may be used with Compose in other modules.

Annotations

DoNotRetain

Annotates that a class should not be retained (i.e. used in the return type of the calculation lambda given to the retain {} method in androidx.compose.runtime).

Cmn
FrequentlyChangingValue

FrequentlyChangingValue is used to denote properties and functions that return values that change frequently during runtime, and cause recompositions when they are read (for example, if they are backed with snapshot state).

Cmn
RememberInComposition

RememberInComposition is used by an associated lint check to enforce that a marked constructor, function, or property getter is not called directly within composition.

Cmn