Documentation / dataflow / com.femastudios.dataflow.listen / ListenerHolder
Go to reference
Go to reference
ListenerHolder
sealed class ListenerHolder<out T>
An object that is responsible to manage the listening of a Field.
You cannot instantiate this class directly, but only via LifecycleOwner.listen.
Properties
started |
Whether the listener is started or not. abstract val started: Boolean |
Functions
destroy |
Stops the listener, and detaches it from the LifecycleOwner. Once destroyed, the ListenerHolder cannot be started again abstract fun destroy(): Unit |
start |
Start listening to changes of Field. The ListenerHolder becomes started (i.e. listens for changes on Field). abstract fun start(): Unit |
stop |
Stops listening to changes on Field. The ListenerHolder becomes not started abstract fun stop(): Unit |