# RenderParameters.HighlightedElement.UserStyle

# RenderParameters.HighlightedElement.UserStyle

Artifact:[androidx.wear.watchface:watchface](https://developer.android.com/jetpack/androidx/releases/wear-watchface)  
[View Source](https://cs.android.com/search?q=file:androidx/wear/watchface/RenderParameters.kt+class:androidx.wear.watchface.RenderParameters.HighlightedElement.UserStyle)  
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/RenderParameters.HighlightedElement.UserStyle "View this page in Java")

<br />

```
class RenderParameters.HighlightedElement.UserStyle : RenderParameters.HighlightedElement
```

<br />

|---|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)                                                                                                                  |||
| ↳ | [androidx.wear.watchface.RenderParameters.HighlightedElement](https://developer.android.com/reference/kotlin/androidx/wear/watchface/RenderParameters.HighlightedElement)                        ||
|   | ↳ | [androidx.wear.watchface.RenderParameters.HighlightedElement.UserStyle](https://developer.android.com/reference/kotlin/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle) |

*** ** * ** ***

| **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

A[UserStyleSetting](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting)to highlight. E.g. for a setting that controls watch hands, the location of the hands should be highlighted.

## Summary

|                                                                                                                                                                                                             ### Public constructors                                                                                                                                                                                                             |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ~~[UserStyle](https://developer.android.com/reference/kotlin/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle#UserStyle(androidx.wear.watchface.style.UserStyleSetting.Id))~~`(id: `[UserStyleSetting.Id](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.Id)`)` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | ~~[equals](https://developer.android.com/reference/kotlin/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle#equals(kotlin.Any))~~`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | ~~[hashCode](https://developer.android.com/reference/kotlin/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle#hashCode())~~`()` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.                                                                                            |

|                                                  ### Public properties                                                  |
|-------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [UserStyleSetting.Id](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.Id) | [id](https://developer.android.com/reference/kotlin/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle#id()) **This property is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

## Public constructors

### UserStyle

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)  

```
[UserStyle](https://developer.android.com/reference/kotlin/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle#UserStyle(androidx.wear.watchface.style.UserStyleSetting.Id))(id: UserStyleSetting.Id)
```
| **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                                                           |
|-------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `id: `[UserStyleSetting.Id](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.Id) | The[UserStyleSetting.Id](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.Id)of the[UserStyleSetting](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting)to highlight. |

## Public functions

### equals

```
open operator fun [equals](https://developer.android.com/reference/kotlin/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle#equals(kotlin.Any))(other: Any?): Boolean
```
| **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  

### hashCode

```
open fun [hashCode](https://developer.android.com/reference/kotlin/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle#hashCode())(): 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  

## Public properties

### id

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)  

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

The[UserStyleSetting.Id](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.Id)of the[UserStyleSetting](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting)to highlight.