# androidx.glance.semantics

## Interfaces

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/glance/semantics/SemanticsPropertyReceiver` | SemanticsPropertyReceiver is the scope provided by semantics {} blocks, letting you set key/value pairs primarily via extension functions. |

## Classes

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/glance/semantics/SemanticsConfiguration` | Describes the semantics information associated with the owning component. |
| `https://developer.android.com/reference/kotlin/androidx/glance/semantics/SemanticsPropertyKey` | SemanticsPropertyKey is the infrastructure for setting key/value pairs inside semantics block in a type-safe way. |

## Objects

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/glance/semantics/SemanticsProperties` | General semantics properties, mainly used for accessibility and testing. |

## Extension functions summary

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/glance/GlanceModifier` | `https://developer.android.com/reference/kotlin/androidx/glance/GlanceModifier.https://developer.android.com/reference/kotlin/androidx/glance/semantics/package-summary#(androidx.glance.GlanceModifier).semantics(kotlin.Function1)(properties: https://developer.android.com/reference/kotlin/androidx/glance/semantics/SemanticsPropertyReceiver.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Add semantics for use in testing, accessibility and similar use cases. |

## Extension properties summary

|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/glance/semantics/SemanticsPropertyReceiver.https://developer.android.com/reference/kotlin/androidx/glance/semantics/package-summary#(androidx.glance.semantics.SemanticsPropertyReceiver).contentDescription()` Developer-set content description of the semantics node, for use in testing, accessibility and similar use cases. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/glance/semantics/SemanticsPropertyReceiver.https://developer.android.com/reference/kotlin/androidx/glance/semantics/package-summary#(androidx.glance.semantics.SemanticsPropertyReceiver).testTag()` Test tag attached to this Glance composable node. |

## Extension functions

### GlanceModifier.semantics

Artifact: [androidx.glance:glance](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/semantics/SemanticsModifier.kt+function:semantics) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0)

```
fun GlanceModifier.semantics(properties: SemanticsPropertyReceiver.() -> Unit): GlanceModifier
```

Add semantics for use in testing, accessibility and similar use cases.

## Extension properties

### SemanticsPropertyReceiver.contentDescription

Artifact: [androidx.glance:glance](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/semantics/SemanticsProperties.kt+symbol:contentDescription) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0)

```
var SemanticsPropertyReceiver.contentDescription: String
```

Developer-set content description of the semantics node, for use in testing, accessibility and similar use cases.

### SemanticsPropertyReceiver.testTag

Artifact: [androidx.glance:glance](https://developer.android.com/jetpack/androidx/releases/glance) [View Source](https://cs.android.com/search?q=file:androidx/glance/semantics/SemanticsProperties.kt+symbol:testTag) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

```
var SemanticsPropertyReceiver.testTag: String
```

Test tag attached to this Glance composable node.

This is a free form String and can be used to find nodes in testing frameworks.