ObserverModifierNode
-
Cmn
interface ObserverModifierNode : DelegatableNode
Modifier.Nodes that implement ObserverNode can provide their own implementation of onObservedReadsChanged that will be called in response to changes to snapshot objects read within an observeReads block.
Summary
Public functions |
||
|---|---|---|
Unit |
This callback is called when any values that are read within the |
Cmn
|
Inherited functions |
|---|
Inherited properties |
|||
|---|---|---|---|
|
Public functions
onObservedReadsChanged
fun onObservedReadsChanged(): Unit
This callback is called when any values that are read within the observeReads block change. It is called after the snapshot is committed. onObservedReadsChanged is called on the UI thread, and only called once in response to snapshot observation. To continue observing further updates, you need to call observeReads again.