Interface

SemanticsModifier

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

Source set: Common
public interface SemanticsModifier : Modifier.Element

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

Properties

id

Source set: Common
@Deprecated(
        message =
            "SemanticsModifier.id is now unused and has been set to a fixed value. " +
                "Retrieve the id from LayoutInfo instead.",
        replaceWith = ReplaceWith(""),
    )
    public val id: Int

semanticsConfiguration

Source set: Common
public val semanticsConfiguration: SemanticsConfiguration

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

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: