CombinedSubspaceModifier

class CombinedSubspaceModifier : SubspaceModifier


A node in a SubspaceModifier chain. A CombinedSubspaceModifier always contains at least two elements; a SubspaceModifier outer that wraps around the SubspaceModifier inner.

Summary

Public constructors

Public functions

open Boolean

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

open Boolean

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

open operator Boolean
equals(other: Any?)
open R
<R : Any?> foldIn(
    initial: R,
    operation: (SubspaceModifierElement<SubspaceModifier.Node>, R) -> R
)

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

open R
<R : Any?> foldOut(
    initial: R,
    operation: (SubspaceModifierElement<SubspaceModifier.Node>, R) -> R
)

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

open Int
open String

Inherited functions

From androidx.xr.compose.subspace.layout.SubspaceModifier
open infix SubspaceModifier

Concatenates this modifier with another.

Public constructors

CombinedSubspaceModifier

Added in 1.0.0-alpha01
CombinedSubspaceModifier(
    outer: SubspaceModifier,
    inner: SubspaceModifier
)

Public functions

all

open fun all(
    predicate: (SubspaceModifierElement<SubspaceModifier.Node>) -> Boolean
): Boolean

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

any

open fun any(
    predicate: (SubspaceModifierElement<SubspaceModifier.Node>) -> Boolean
): Boolean

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

equals

open operator fun equals(other: Any?): Boolean

foldIn

open fun <R : Any?> foldIn(
    initial: R,
    operation: (SubspaceModifierElement<SubspaceModifier.Node>, R) -> R
): R

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

foldOut

open fun <R : Any?> foldOut(
    initial: R,
    operation: (SubspaceModifierElement<SubspaceModifier.Node>, R) -> R
): R

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String