Root
Functions
addChildren
Link copied to clipboard
addListener
Link copied to clipboard
attach
Link copied to clipboard
hasChild
Link copied to clipboard
onDidAttach
Link copied to clipboard
fun onDidAttach(validity: LifecycleListener.Validity = LifecycleListener.Validity.Infinite, listener: () -> Unit): CancellationToken
Content copied to clipboard
onDidDetach
Link copied to clipboard
fun onDidDetach(validity: LifecycleListener.Validity = LifecycleListener.Validity.Infinite, listener: () -> Unit): CancellationToken
Content copied to clipboard
onWillAttach
Link copied to clipboard
fun onWillAttach(validity: LifecycleListener.Validity = LifecycleListener.Validity.Infinite, listener: () -> Unit): CancellationToken
Content copied to clipboard
onWillDetach
Link copied to clipboard
fun onWillDetach(validity: LifecycleListener.Validity = LifecycleListener.Validity.Infinite, listener: () -> Unit): CancellationToken
Content copied to clipboard
removeChild
Link copied to clipboard
removeChildren
Link copied to clipboard
removeListener
Link copied to clipboard
runOnceIfAttached
Link copied to clipboard
fun runOnceIfAttached(runner: suspend CoroutineScope.() -> Unit): Boolean
Content copied to clipboard
Launches runner right away if attached, does nothing otherwise.
topMostNode
Link copied to clipboard
whileAttached
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.
Properties
Extensions
attachToMainScope
Link copied to clipboard
fun LifecycleGraph.Root.attachToMainScope(unhandledExceptionHandler: (CoroutineContext, Throwable) -> Unit): CancellationToken
Content copied to clipboard
attachToMultiplatformGlobalScope
Link copied to clipboard
fun LifecycleGraph.Root.attachToMultiplatformGlobalScope(): CancellationToken
Content copied to clipboard