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

```kotlin
public sealed interface RemoteModifier
```

An ordered, immutable collection of modifier elements for Remote Compose.

`RemoteModifier` is the remote-first equivalent of [androidx.compose.ui.Modifier](/jetpack-compose/androidx.compose.ui/ui/interfaces/Modifier). It is used to
decorate or augment remote composables (e.g., adding padding, background, or click listeners).

Remote modifiers are designed to be encoded and evaluatable on a remote compose player.

## Functions

<h2 id="torecordingmodifier">toRecordingModifier</h2>

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public fun RemoteStateScope.toRecordingModifier(): RecordingModifier
```

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

<h2 id="foldin-initial-operation">foldIn</h2>

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public fun <R> foldIn(initial: R, operation: (R, Element) -> R): R
```

Accumulates a value starting with `initial` and applying `operation` to the current value and
each element from outside in.

Elements wrap one another in a chain from left to right; an `Element` that appears to the
left of another in a `+` expression or in `operation`'s parameter order affects all of the
elements that appear after it. [foldIn](#foldin) may be used to accumulate a value starting from the
parent or head of the modifier chain to the final wrapped child.

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

<h2 id="foldout-initial-operation">foldOut</h2>

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public fun <R> foldOut(initial: R, operation: (Element, R) -> R): R
```

Accumulates a value starting with `initial` and applying `operation` to the current value and
each element from inside out.

Elements wrap one another in a chain from left to right; an `Element` that appears to the
left of another in a `+` expression or in `operation`'s parameter order affects all of the
elements that appear after it. [foldOut](#foldout) may be used to accumulate a value starting from the
child or tail of the modifier chain up to the parent or head of the chain.

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

<h2 id="any-predicate">any</h2>

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public fun any(predicate: (Element) -> Boolean): Boolean
```

Returns `true` if `predicate` returns true for any `Element` in this [RemoteModifier](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/RemoteModifier).

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

<h2 id="all-predicate">all</h2>

```kotlin
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public fun all(predicate: (Element) -> Boolean): Boolean
```

Returns `true` if `predicate` returns true for all `Element`s in this [RemoteModifier](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/RemoteModifier) or if
this [RemoteModifier](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/RemoteModifier) contains no `Element`s.

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

<h2 id="then-other">then</h2>

```kotlin
public infix fun then(other: RemoteModifier): RemoteModifier
```

Concatenates this modifier with another.

Returns a [RemoteModifier](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/RemoteModifier) representing this modifier followed by `other` in sequence.