Google is committed to advancing racial equity for Black communities. See how.


typealias SnapshotApplyObserver = (changed: Set<Any>, snapshot: Snapshot) -> Unit

Callback type for observing when a non-nested mutable snapshot is applied by calling MutableSnapshot.apply, modifying the visible global state of state objects. Changes to a state object outside of a snapshot are also sent to the snapshot apply observer whenever Snapshot.sendApplyNotifications is called.

The committed parameter is a collection of state objects modified in the snapshot. The snapshot parameter is the snapshot that was applied.