# UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder

# UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder

Artifact:[androidx.wear.watchface:watchface-style](https://developer.android.com/jetpack/androidx/releases/wear-watchface)  
[View Source](https://cs.android.com/search?q=file:androidx/wear/watchface/style/UserStyleSetting.kt+class:androidx.wear.watchface.style.UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0)  
Deprecated in[1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder "View this page in Java")

<br />

```
class UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder
```

<br />

*** ** * ** ***

| **This class is deprecated.**   
| AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Constructs a[ComplicationSlotOverlay](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay).Builder.

## Summary

|                                                                                                                                                                                               ### Public constructors                                                                                                                                                                                               |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ~~[Builder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder#Builder(kotlin.Int))~~`(complicationSlotId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

|                                                                                                                 ### Public functions                                                                                                                  |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay)                 | ~~[build](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder#build())~~`()` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.                                                                                                                                                                                                                                                                         |
| [UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder) | ~~[setAccessibilityTraversalIndex](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder#setAccessibilityTraversalIndex(kotlin.Int))~~`(accessibilityTraversalIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.                                                                                                   |
| [UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder) | ~~[setComplicationSlotBounds](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder#setComplicationSlotBounds(androidx.wear.watchface.complications.ComplicationSlotBounds))~~`(` ` complicationSlotBounds: `[ComplicationSlotBounds](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds) `)` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| [UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder) | ~~[setEnabled](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder#setEnabled(kotlin.Boolean))~~`(enabled: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.                                                                                                                                                   |
| [UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder) | ~~[setNameResourceId](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder#setNameResourceId(kotlin.Int))~~`(nameResourceId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.                                                                                                                                          |
| [UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder) | ~~[setScreenReaderNameResourceId](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder#setScreenReaderNameResourceId(kotlin.Int))~~`(screenReaderNameResourceId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.                                                                                                      |

## Public constructors

### Builder

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0)  
Deprecated in[1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)  

```
[Builder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder#Builder(kotlin.Int))(complicationSlotId: Int)
```
| **This function is deprecated.**   
AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff  

|                                            Parameters                                             |
|---------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `complicationSlotId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The id of the[androidx.wear.watchface.ComplicationSlot](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot)to configure. |

## Public functions

### build

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0)  
Deprecated in[1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)  

```
fun [build](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder#build())(): UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay
```
| **This function is deprecated.**   
AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff  

### setAccessibilityTraversalIndex

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0)  
Deprecated in[1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)  

```
fun [setAccessibilityTraversalIndex](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder#setAccessibilityTraversalIndex(kotlin.Int))(accessibilityTraversalIndex: Int): UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder
```
| **This function is deprecated.**   
| AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Overrides the[androidx.wear.watchface.ComplicationSlot](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot)'s accessibility traversal index. This is used to sort[androidx.wear.watchface.ContentDescriptionLabel](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ContentDescriptionLabel)s. If unset we will order the complications by their initial accessibilityTraversalIndex (usually the same as their id).  

### setComplicationSlotBounds

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0)  
Deprecated in[1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)  

```
fun [setComplicationSlotBounds](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder#setComplicationSlotBounds(androidx.wear.watchface.complications.ComplicationSlotBounds))(
    complicationSlotBounds: ComplicationSlotBounds
): UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder
```
| **This function is deprecated.**   
| AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Overrides the complication's per[ComplicationSlotBounds](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds).  

### setEnabled

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0)  
Deprecated in[1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)  

```
fun [setEnabled](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder#setEnabled(kotlin.Boolean))(enabled: Boolean): UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder
```
| **This function is deprecated.**   
| AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Overrides the complication's enabled flag.  

### setNameResourceId

Added in[1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0)  
Deprecated in[1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)  

```
fun [setNameResourceId](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder#setNameResourceId(kotlin.Int))(nameResourceId: Int): UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder
```
| **This function is deprecated.**   
| AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Overrides the ID of a string resource containing the name of this complication slot, for use by a screen reader. This resource should be a short sentence. E.g. "Left complication" for the left complication.  

### setScreenReaderNameResourceId

Added in[1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0)  
Deprecated in[1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)  

```
fun [setScreenReaderNameResourceId](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder#setScreenReaderNameResourceId(kotlin.Int))(screenReaderNameResourceId: Int): UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay.Builder
```
| **This function is deprecated.**   
| AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Overrides the ID of a string resource containing the name of this complication slot, for use by a screen reader. This resource should be a short sentence. E.g. "Left complication" for the left complication.