Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[],null,["# KeyframesSpec.KeyframeEntity\n============================\n\nArtifact: [androidx.compose.animation:animation-core](/jetpack/androidx/releases/compose-animation) \n[View Source](https://cs.android.com/search?q=file:androidx/compose/animation/core/AnimationSpec.kt+class:androidx.compose.animation.core.KeyframesSpec.KeyframeEntity) \nAdded in [1.0.0](/jetpack/androidx/releases/compose-animation#1.0.0)\nCommon/All\n - Cmn \n\n ```\n class KeyframesSpec.KeyframeEntity\u003cT : Any?\u003e : KeyframeBaseEntity\n``` \n\n|---|---|------------------------------------------------------------------------------------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||\n| ↳ | [androidx.compose.animation.core.KeyframeBaseEntity](/reference/kotlin/androidx/compose/animation/core/KeyframeBaseEntity) ||\n| | ↳ | [androidx.compose.animation.core.KeyframesSpec.KeyframeEntity](/reference/kotlin/androidx/compose/animation/core/KeyframesSpec.KeyframeEntity) |\n\n*** ** * ** ***\n\nHolder class for building a keyframes animation.\n\nSummary\n-------\n\n| ### Public functions |\n|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|\n| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](/reference/kotlin/androidx/compose/animation/core/KeyframesSpec.KeyframeEntity#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` | Cmn |\n| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [hashCode](/reference/kotlin/androidx/compose/animation/core/KeyframesSpec.KeyframeEntity#hashCode())`()` | Cmn |\n\nPublic functions\n----------------\n\n### equals\n\nCmn \n\n```\nopen operator fun equals(other: Any?): Boolean\n``` \n\n### hashCode\n\nCmn \n\n```\nopen fun hashCode(): Int\n```"]]