# CurvedSemanticsScope

# CurvedSemanticsScope

Artifact:[androidx.wear.compose:compose-foundation](https://developer.android.com/jetpack/androidx/releases/wear-compose)  
[View Source](https://cs.android.com/search?q=file:androidx/wear/compose/foundation/CurvedSemantics.kt+class:androidx.wear.compose.foundation.CurvedSemanticsScope)  
Added in[1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

<br />

```
class CurvedSemanticsScope
```

<br />

*** ** * ** ***

CurvedSemanticsScope is the scope provided by semantics lambda blocks, letting you set semantic properties.

## Summary

|                                                                 ### Public constructors                                                                 |
|---------------------------------------------------------------------------------------------------------------------------------------------------------|
| [CurvedSemanticsScope](https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/CurvedSemanticsScope#CurvedSemanticsScope())`()` |

|                                ### Public properties                                 |
|--------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?` | [contentDescription](https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/CurvedSemanticsScope#contentDescription()) Developer-set content description of the semantics node. |
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)      | [traversalIndex](https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/CurvedSemanticsScope#traversalIndex()) A value to manually control screenreader traversal order.        |

## Public constructors

### CurvedSemanticsScope

Added in[1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)  

```
CurvedSemanticsScope()
```  

## Public properties

### contentDescription

Added in[1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)  

```
var contentDescription: String?
```

Developer-set content description of the semantics node.

If this is not set, accessibility services will present the text of this node as the content.  

### traversalIndex

Added in[1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)  

```
var traversalIndex: Float
```

A value to manually control screenreader traversal order.

This API can be used to customize TalkBack traversal order. When the`traversalIndex`property is set on a traversalGroup or on a screenreader-focusable node, then the sorting algorithm will prioritize nodes with smaller`traversalIndex`s earlier. The default traversalIndex value is zero, and traversalIndices are compared at a peer level.

For example,`traversalIndex = -1f`can be used to force a top bar to be ordered earlier, and`traversalIndex = 1f`to make a bottom bar ordered last, in the edge cases where this does not happen by default. As another example, if you need to reorder two Buttons within a Row, then you can set`isTraversalGroup = true`on the Row, and set`traversalIndex`on one of the Buttons.

Note that if`traversalIndex`seems to have no effect, be sure to set`isTraversalGroup = true`as well in a parent node.