{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

InspectableModifier

public final class InspectableModifier extends InspectorValueInfo implements Modifier.Element

java.lang.Object
   ↳ androidx.compose.ui.platform.InspectorValueInfo
     ↳ androidx.compose.ui.platform.InspectableModifier

Annotates a range of modifiers in a chain with inspector metadata.

Summary

Nested types

public final inner class InspectableModifier.End implements Modifier.Element

Public constructors

Public methods

final @NonNull InspectableModifier.End

Inherited methods

From androidx.compose.ui.platform.InspectorValueInfo
@NonNull Sequence<@NonNull ValueElement>

The elements of a compose value.

String

Use this name as the reference name shown in tools of this value if there is no explicit reference name given to the value.

Object

Use this value as a readable representation of the value.

From androidx.compose.ui.Modifier
@NonNull Modifier

Concatenates this modifier with another.

From androidx.compose.ui.Modifier.Element
boolean
all(
    @NonNull Function1<@NonNull Modifier.Element, @NonNull Boolean> predicate
)

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

boolean
any(
    @NonNull Function1<@NonNull Modifier.Element, @NonNull Boolean> predicate
)

Returns true if predicate returns true for any Element in this Modifier.

@NonNull R
<R extends Object> foldIn(
    @NonNull R initial,
    @NonNull Function2<@NonNull R, @NonNull Modifier.Element, @NonNull R> operation
)

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

@NonNull R
<R extends Object> foldOut(
    @NonNull R initial,
    @NonNull Function2<@NonNull Modifier.Element, @NonNull R, @NonNull R> operation
)

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

Public constructors

InspectableModifier

public InspectableModifier(
    @ExtensionFunctionType @NonNull Function1<@NonNull InspectorInfoUnit> inspectorInfo
)

Public methods

getEnd

public final @NonNull InspectableModifier.End getEnd()