https://kotlinlang.org logo
#compose
Title
# compose
h

humblehacker

04/30/2022, 2:12 PM
When using
enableComposeCompilerMetrics
, what does
runtime
mean? I didn't see it mentioned in the documentation I've read, only
stable
and
unstable
. For example:
Copy code
runtime class State {
  stable val text: String
  runtime var CREATOR: Creator<State>
  <runtime stability> = Uncertain(Creator)
}
That's for this class declaration:
Copy code
data class State(
    val text: String = "",
) : Parcelable {
    companion object
}
Ah, I was referring to Chris Banes's blog article https://chris.banes.dev/composable-metrics/, but I just found the doc on github which does discuss this a bit.
Can anyone explain
runtime var CREATOR: Creator<State>
? Why would the creator of a class instance affect a class's stability?
51 Views