Interface

SubspaceModifier

An ordered, immutable collection of subspace modifier elementsSubspaceModifierNodeElement that decorate or add behavior to Subspace Compose elements.

Source set: Android
public interface SubspaceModifier

An ordered, immutable collection of subspace modifier elements that decorate or add behavior to Subspace Compose elements.

Based on androidx.compose.ui.Modifier

Functions

foldIn

public fun <R> foldIn(: R, operation: (R, SubspaceModifierNodeElement<Node>) -> R): R

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

foldOut

public fun <R> foldOut(: R, operation: (SubspaceModifierNodeElement<Node>, R) -> R): R

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

any

public fun any(predicate: (SubspaceModifierNodeElement<Node>) -> Boolean): Boolean

Returns true if predicate returns true for any SubspaceModifierNodeElement in this SubspaceModifier.

all

public fun all(predicate: (SubspaceModifierNodeElement<Node>) -> Boolean): Boolean

Returns true if predicate returns true for all SubspaceModifierNodeElements in this SubspaceModifier or if this SubspaceModifier contains no Elements.

then

public infix fun then(other: SubspaceModifier): SubspaceModifier

Concatenates this modifier with another.

Returns a SubspaceModifier representing this modifier followed by other in sequence.

Last updated: