LayoutModifier.Element


interface LayoutModifier.Element : LayoutModifier


A single element contained within a LayoutModifier chain.

Summary

Public functions

open R
<R : Any?> foldRight(initial: R, operation: (LayoutModifier.Element, R) -> R)

Accumulates a value starting with initial and applying operation to the current value and each element from left to right.

Inherited functions

From androidx.wear.protolayout.modifiers.LayoutModifier
open infix LayoutModifier

Concatenates this modifier with another.

Public functions

foldRight

open fun <R : Any?> foldRight(initial: R, operation: (LayoutModifier.Element, R) -> R): R

Accumulates a value starting with initial and applying operation to the current value and each element from left to right.

foldRight may be used to accumulate a value starting from the head of the modifier chain to the final modifier element.