Object

SemanticsProperties

General semantics properties, mainly used for accessibility and testing.

Source set: Android
public object SemanticsProperties

General semantics properties, mainly used for accessibility and testing.

Each property is intended to be set by the respective SemanticsPropertyReceiver extension instead of used directly.

Properties

ContentDescription

Source set: Android
public val ContentDescription: SemanticsPropertyKey<List<String>> =
        SemanticsPropertyKey<List<String>>(
            name = "ContentDescription",
            mergePolicy = { parentValue, childValue ->
                parentValue?.toMutableList()?.also { it.addAll(childValue) } ?: childValue
            },
        )

TestTag

Source set: Android
public val TestTag: SemanticsPropertyKey<String> =
        SemanticsPropertyKey<String>(
            name = "TestTag",
            mergePolicy = { parentValue, _ ->
                // No merge
                parentValue
            },
        )
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: