SemanticsModifier

Interface

Common
@JvmDefaultWithCompatibility
interface SemanticsModifier : Modifier.Element

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

Properties

Common

Deprecated SemanticsModifier.id is now unused and has been set to a fixed value. Retrieve the id from LayoutInfo instead.

val id: Int
Common
val semanticsConfiguration: SemanticsConfiguration

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