SemanticsModifier


A Modifier.Element that adds semantics key/value for use in testing, accessibility, and similar use cases.

Summary

Public properties

open Int

This property is deprecated. SemanticsModifier.id is now unused and has been set to a fixed value.

Cmn
SemanticsConfiguration

The SemanticsConfiguration holds substantive data, especially a list of key/value pairs such as (label -> "buttonName").

Cmn

Inherited functions

From androidx.compose.ui.Modifier
open infix Modifier
then(other: Modifier)

Concatenates this modifier with another.

Cmn
From androidx.compose.ui.Modifier.Element
open Boolean
all(predicate: (Modifier.Element) -> Boolean)

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

Cmn
open Boolean
any(predicate: (Modifier.Element) -> Boolean)

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

Cmn
open R
<R : Any?> foldIn(initial: R, operation: (Modifier.Element, R) -> R)

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

Cmn
open R
<R : Any?> foldOut(initial: R, operation: (Modifier.Element, R) -> R)

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

Cmn

Public properties

id

open val idInt

semanticsConfiguration

val semanticsConfigurationSemanticsConfiguration

The SemanticsConfiguration holds substantive data, especially a list of key/value pairs such as (label -> "buttonName").