StableMarker

@Target([AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CLASS]) annotation class StableMarker
androidx.compose.StableMarker

StableMarker marks an annotation as indicating a type as having a stable equals comparision that can be used during composition. When all types passed as parameters to a Composable function are marked as stable then then the parameter values are compared for equality based on positional memoization and the call is skipped if all the values are the equal to the previous call.

Primitive value types (such as Int, Float, etc), String and enum types are considered, a priori, stable.

Summary

Public constructors

StableMarker marks an annotation as indicating a type as having a stable equals comparision that can be used during composition.

Public constructors

<init>

StableMarker()

StableMarker marks an annotation as indicating a type as having a stable equals comparision that can be used during composition. When all types passed as parameters to a Composable function are marked as stable then then the parameter values are compared for equality based on positional memoization and the call is skipped if all the values are the equal to the previous call.

Primitive value types (such as Int, Float, etc), String and enum types are considered, a priori, stable.