{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

SnapshotApplyResult.Failure

public final class SnapshotApplyResult.Failure extends SnapshotApplyResult

java.lang.Object
   ↳ androidx.compose.runtime.snapshots.SnapshotApplyResult
     ↳ androidx.compose.runtime.snapshots.SnapshotApplyResult.Failure

Summary

Public constructors

Public methods

void

Check the result of a snapshot apply.

final @NonNull Snapshot
boolean

True if the result is Success.

Public constructors

Failure

public Failure(@NonNull Snapshot snapshot)

Public methods

check

public void check()

Check the result of a snapshot apply. Calling check on a Failure result throws a SnapshotApplyConflictException exception.

getSnapshot

public final @NonNull Snapshot getSnapshot()

getSucceeded

public boolean getSucceeded()

True if the result is Success.