Documentation / dataflow / com.femastudios.dataflow.listen / LifecycleOwner / attachToLifecycle
Go to reference
Go to reference
attachToLifecycle
abstract fun attachToLifecycle(key: Any, listenerHolder: ListenerHolder<*>): ListenerHolder<*>?
Attaches the given ListenerHolder to the lifecycle of this object Detaches and returns the previous ListenerHolder attached under key