# SemanticsPropertyReceiver

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+class:androidx.glance.semantics.SemanticsPropertyReceiver) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0)


```
interface SemanticsPropertyReceiver
```

<br />

Known direct subclasses [SemanticsConfiguration](https://developer.android.com/reference/kotlin/androidx/glance/semantics/SemanticsConfiguration)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/glance/semantics/SemanticsConfiguration` | Describes the semantics information associated with the owning component. |

*** ** * ** ***

SemanticsPropertyReceiver is the scope provided by semantics {} blocks, letting you set key/value pairs primarily via extension functions.

## Summary

| ### Public functions |
|---|---|
| `operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/glance/semantics/SemanticsPropertyReceiver#set(androidx.glance.semantics.SemanticsPropertyKey,kotlin.Any)(key: https://developer.android.com/reference/kotlin/androidx/glance/semantics/SemanticsPropertyKey<T>, value: T)` |

| ### Extension properties |
|---|---|
| `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/SemanticsPropertyReceiver#(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/SemanticsPropertyReceiver#(androidx.glance.semantics.SemanticsPropertyReceiver).testTag()` Test tag attached to this Glance composable node. |

## Public functions

### set

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0)

```
operator fun <T : Any?> set(key: SemanticsPropertyKey<T>, value: T): Unit
```

## 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.