Android 12 Developer Preview is here! Try it out, and give us your feedback!

StabilityInferred

@Target([AnnotationTarget.CLASS]) annotation class StabilityInferred
androidx.compose.runtime.internal.StabilityInferred

This annotation is added on classes by the compiler when their stability is inferred. It indicates that there will be a synthetic static final int $stable added to the class which can be used by the compose compiler plugin to generate expressions to determine the stability of a realized type at runtime.

Summary

Public constructors
<init>(parameters: Int)

This annotation is added on classes by the compiler when their stability is inferred.

Properties
Int

A bitmask, with one bit per type parameter of the annotated class.

Public constructors

<init>

StabilityInferred(parameters: Int)

This annotation is added on classes by the compiler when their stability is inferred. It indicates that there will be a synthetic static final int $stable added to the class which can be used by the compose compiler plugin to generate expressions to determine the stability of a realized type at runtime.

Parameters
parameters: Int A bitmask, with one bit per type parameter of the annotated class. A 1 bit indicates that the stability of the annotated class should be calculated as a combination of the stability of the class itself and the stability of that type parameter.

Properties

parameters

val parameters: Int

A bitmask, with one bit per type parameter of the annotated class. A 1 bit indicates that the stability of the annotated class should be calculated as a combination of the stability of the class itself and the stability of that type parameter.