runtime-annotation
Classes
  • DoNotRetain
  • FrequentlyChangingValue
  • Immutable
  • RememberInComposition
  • Stable
  • StableMarker
Jetpack Compose / Compose Runtime / runtime-annotation / Classes / Immutable
Class

Immutable

View Markdown Open in ChatGPT Open in Claude

Immutable can be used to mark class as producing immutable instances.

CodeRabbit

CodeRabbit

AI writes the code. CodeRabbit catches the slop.

AdTry CodeRabbit for Free
Robomori

Robomori

Run Android emulators and devices outside Android Studio.

AdTry Robomori
API

Examples

simpleImmutableClass

@Sampled
fun simpleImmutableClass() {
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free →

Content updated: 2026-11-04

FrequentlyChangingValue ← Previous RememberInComposition Next →

On this page

  • simpleImmutableClass
Reach Android developers Put your product in front of engineers building Android and KMP apps. Sponsor Composables