Property

currentCompositeKeyHash

This a hash value used to coordinate map externally stored state to the composition.

Source set: Common
@Deprecated(
    "Prefer the higher-precision currentCompositeKeyHashCode",
    ReplaceWith("currentCompositeKeyHashCode"),
)
public val currentCompositeKeyHash: Int

This a hash value used to coordinate map externally stored state to the composition. For example, this is used by saved instance state to preserve state across activity lifetime boundaries.

This value is likely to be unique but is not guaranteed unique. There are known cases, such as for loops without a key, where the runtime does not have enough information to make the compound key hash unique.

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: