SubspaceModifier.Node

abstract class SubspaceModifier.Node : DelegatableSubspaceNode


The longer-lived object that is created for each SubspaceModifierNodeElement applied to a SubspaceLayout

Summary

Public constructors

Public functions

open Unit

Called when the node is attached to a SubspaceLayout which is part of the UI tree.

open Unit

Called when the node is not attached to a SubspaceLayout anymore.

Public properties

Boolean

Indicates that the node is attached to a SubspaceLayout which is part of the UI tree.

open SubspaceModifier.Node

A reference of the SubspaceModifier.Node that holds this node's position in the node hierarchy.

Public constructors

Node

Added in 1.0.0-alpha07
Node()

Public functions

onAttach

Added in 1.0.0-alpha07
open fun onAttach(): Unit

Called when the node is attached to a SubspaceLayout which is part of the UI tree.

onDetach

Added in 1.0.0-alpha07
open fun onDetach(): Unit

Called when the node is not attached to a SubspaceLayout anymore. Note that the node can be reattached again.

Public properties

isAttached

Added in 1.0.0-alpha07
val isAttachedBoolean

Indicates that the node is attached to a SubspaceLayout which is part of the UI tree. This will get set to true right before onAttach is called, and set to false right after onDetach is called.

See also
onAttach
onDetach

node

open val nodeSubspaceModifier.Node

A reference of the SubspaceModifier.Node that holds this node's position in the node hierarchy. If the node is a delegate of another node, this will point to the root delegating node that is actually part of the node tree. Otherwise, this will point to itself.