# SubspaceModifier.Companion

Artifact: [androidx.xr.compose:compose](https://developer.android.com/jetpack/androidx/releases/xr-compose) [View Source](https://cs.android.com/search?q=file:androidx/xr/compose/subspace/layout/SubspaceModifier.kt+class:androidx.xr.compose.subspace.layout.SubspaceModifier.Companion) Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)


```
object SubspaceModifier.Companion : SubspaceModifier
```

<br />

*** ** * ** ***

The companion object `SubspaceModifier` is the empty, default, or starter `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier` that contains no `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceModifierNodeElement`.

## Summary

| ### Public functions |
|---|---|
| `infix https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier#then(androidx.xr.compose.subspace.node.SubspaceModifierNodeElement)(other: https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceModifierNodeElement<https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier.Node>)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier#toString()()` |

### Inherited functions

From [androidx.xr.compose.subspace.layout.SubspaceModifier](https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier) `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier#all(kotlin.Function1)(
predicate: (https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceModifierNodeElement<https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier.Node>) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html
)`

Returns `true` if `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier#all(kotlin.Function1)` returns true for all `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceModifierNodeElement`s in this `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier` or if this `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier` contains no Elements.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier#any(kotlin.Function1)(
predicate: (https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceModifierNodeElement<https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier.Node>) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html
)`

Returns `true` if `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier#any(kotlin.Function1)` returns true for any `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceModifierNodeElement` in this `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier`.
`open R` `<R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier#foldIn(kotlin.Any,kotlin.Function2)(
initial: R,
operation: (https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceModifierNodeElement<https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier.Node>, R) -> R
)`

Accumulates a value starting with `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier#foldIn(kotlin.Any,kotlin.Function2)` and applying `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier#foldIn(kotlin.Any,kotlin.Function2)` to the current value and each `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceModifierNodeElement` from outside in.
`open R` `<R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier#foldOut(kotlin.Any,kotlin.Function2)(
initial: R,
operation: (https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceModifierNodeElement<https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier.Node>, R) -> R
)`

Accumulates a value starting with `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier#foldOut(kotlin.Any,kotlin.Function2)` and applying `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier#foldOut(kotlin.Any,kotlin.Function2)` to the current value and each `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceModifierNodeElement` from inside out.
`open infix https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier` `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier#then(androidx.xr.compose.subspace.layout.SubspaceModifier)(other: https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceModifier)`

Concatenates this modifier with another.

## Public functions

### then

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
infix fun then(other: SubspaceModifierNodeElement<SubspaceModifier.Node>): SubspaceModifier
```

### toString

```
open fun toString(): String
```