<div class='sourceset sourceset-android'>Android</div>

```kotlin
public abstract class Node : DelegatableSubspaceNode
```

The longer-lived object that is created for each [SubspaceModifierNodeElement](/jetpack-compose/androidx.xr.compose/compose/classes/SubspaceModifierNodeElement) applied to a
[SubspaceLayout](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SubspaceLayout)

## Functions

<h2 id="onattach">onAttach</h2>

```kotlin
public open fun onAttach()
```

Called when the node is attached to a [SubspaceLayout](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SubspaceLayout) which is part of the UI tree.

<hr class="docs-overload-divider">

<h2 id="ondetach">onDetach</h2>

```kotlin
public open fun onDetach()
```

Called when the node is not attached to a [SubspaceLayout](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SubspaceLayout) anymore. Note that the node
can be reattached again.