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-06-23 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-06-23 UTC."],[],[],null,["# SnapshotApplyResult.Failure\n===========================\n\nArtifact: [androidx.compose.runtime:runtime](/jetpack/androidx/releases/compose-runtime) \n[View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/snapshots/Snapshot.kt+class:androidx.compose.runtime.snapshots.SnapshotApplyResult.Failure) \nAdded in [1.0.0](/jetpack/androidx/releases/compose-runtime#1.0.0)\nCommon/AllAndroid/JVMNative/C/iOSJavaScript\n - Cmn \n\n ```\n class SnapshotApplyResult.Failure : SnapshotApplyResult\n``` \n\n|---|---|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||\n| ↳ | [androidx.compose.runtime.snapshots.SnapshotApplyResult](/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult) ||\n| | ↳ | [androidx.compose.runtime.snapshots.SnapshotApplyResult.Failure](/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Failure) |\n\n*** ** * ** ***\n\nSummary\n-------\n\n| ### Public constructors |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|\n| [Failure](/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Failure#Failure(androidx.compose.runtime.snapshots.Snapshot))`(snapshot: `[Snapshot](/reference/kotlin/androidx/compose/runtime/snapshots/Snapshot)`)` | Cmn |\n\n| ### Public functions |\n|--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|-----|\n| `open `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [check](/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Failure#check())`()` Check the result of a snapshot apply. | Cmn |\n\n| ### Public properties |\n|--------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|\n| [Snapshot](/reference/kotlin/androidx/compose/runtime/snapshots/Snapshot) | [snapshot](/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Failure#snapshot()) | Cmn |\n| `open `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [succeeded](/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Failure#succeeded()) True if the result is [Success](/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Success). | Cmn |\n\nPublic constructors\n-------------------\n\n### Failure\n\nCmn \nAdded in [1.0.0](/jetpack/androidx/releases/compose-runtime#1.0.0) \n\n```\nFailure(snapshot: Snapshot)\n```\n\nPublic functions\n----------------\n\n### check\n\nCmn \n\n```\nopen fun check(): Unit\n```\n\nCheck the result of a snapshot apply. Calling [check](/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Failure#check()) on a [Failure](/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Failure) result throws a [SnapshotApplyConflictException](/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyConflictException) exception.\n\nPublic properties\n-----------------\n\n### snapshot\n\nCmn \nAdded in [1.0.0](/jetpack/androidx/releases/compose-runtime#1.0.0) \n\n```\nval snapshot: Snapshot\n``` \n\n### succeeded\n\nCmn \n\n```\nopen val succeeded: Boolean\n```\n\nTrue if the result is [Success](/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Success)."]]