# SnapshotApplyResult.Failure

Artifact: [androidx.compose.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/compose-runtime) [View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/snapshots/Snapshot.kt+class:androidx.compose.runtime.snapshots.SnapshotApplyResult.Failure) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.0.0) Common/AllAndroid/JVMNative/C/iOSJavaScript
- Cmn

  ```
  class SnapshotApplyResult.Failure : SnapshotApplyResult
  ```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.compose.runtime.snapshots.SnapshotApplyResult](https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult) ||
|   | ↳ | [androidx.compose.runtime.snapshots.SnapshotApplyResult.Failure](https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Failure) |

*** ** * ** ***

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Failure#Failure(androidx.compose.runtime.snapshots.Snapshot)(snapshot: https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/Snapshot)` | Cmn |

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Failure#check()()` Check the result of a snapshot apply. | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/Snapshot` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Failure#snapshot()` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Failure#succeeded()` True if the result is `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Success`. | Cmn |

## Public constructors

### Failure

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.0.0)

```
Failure(snapshot: Snapshot)
```

## Public functions

### check

Cmn

```
open fun check(): Unit
```

Check the result of a snapshot apply. Calling `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Failure#check()` on a `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Failure` result throws a `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyConflictException` exception.

## Public properties

### snapshot

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.0.0)

```
val snapshot: Snapshot
```

### succeeded

Cmn

```
open val succeeded: Boolean
```

True if the result is `https://developer.android.com/reference/kotlin/androidx/compose/runtime/snapshots/SnapshotApplyResult.Success`.