Node
Constructors
Functions
Link copied to clipboard
Adds child as a dependent lifecycle sharing the same scope and attachment status as this instance.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun onDidAttach(validity: LifecycleListener.Validity = LifecycleListener.Validity.Infinite, listener: () -> Unit): CancellationToken
Content copied to clipboard
Registers listener for the DidAttach event.
Link copied to clipboard
fun onDidDetach(validity: LifecycleListener.Validity = LifecycleListener.Validity.Infinite, listener: () -> Unit): CancellationToken
Content copied to clipboard
Registers listener for the DidDetach event.
Link copied to clipboard
fun onWillAttach(validity: LifecycleListener.Validity = LifecycleListener.Validity.Infinite, listener: () -> Unit): CancellationToken
Content copied to clipboard
Registers listener for the WillAttach event.
Link copied to clipboard
fun onWillDetach(validity: LifecycleListener.Validity = LifecycleListener.Validity.Infinite, listener: () -> Unit): CancellationToken
Content copied to clipboard
Registers listener for the WillDetach event.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun runOnceIfAttached(runner: suspend CoroutineScope.() -> Unit): Boolean
Content copied to clipboard
Launches runner right away if attached, does nothing otherwise.
Link copied to clipboard
Link copied to clipboard
fun whileAttached(runner: suspend CoroutineScope.() -> Unit): CancellationToken
Content copied to clipboard
Registers runner to be launched each time this lifecycle is attached to a scope and cancelled once detached.