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

*** ** * ** ***


```
public final class RenderParameters.HighlightedElement.UserStyle extends RenderParameters.HighlightedElement
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.wear.watchface.RenderParameters.HighlightedElement](https://developer.android.com/reference/androidx/wear/watchface/RenderParameters.HighlightedElement) ||
|   | ↳ | [androidx.wear.watchface.RenderParameters.HighlightedElement.UserStyle](https://developer.android.com/reference/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle) |

*** ** * ** ***

> [!CAUTION]
> **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 `https://developer.android.com/reference/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/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle#UserStyle(androidx.wear.watchface.style.UserStyleSetting.Id))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.Id id)` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

| ### Public methods |
|---|---|
| `boolean` | `[equals](https://developer.android.com/reference/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle#equals(kotlin.Any))(https://developer.android.com/reference/java/lang/Object.html other)` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.Id` | `[getId](https://developer.android.com/reference/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle#getId())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `int` | `[hashCode](https://developer.android.com/reference/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle#hashCode())()` **This method 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)

```
public [UserStyle](https://developer.android.com/reference/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle#UserStyle(androidx.wear.watchface.style.UserStyleSetting.Id))(@NonNull UserStyleSetting.Id id)
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.Id id` | The `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.Id` of the `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting` to highlight. |

## Public methods

### equals

```
public boolean [equals](https://developer.android.com/reference/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle#equals(kotlin.Any))(Object other)
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

### getId

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)

```
public final @NonNull UserStyleSetting.Id [getId](https://developer.android.com/reference/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle#getId())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

The `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.Id` of the `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting` to highlight.

### hashCode

```
public int [hashCode](https://developer.android.com/reference/androidx/wear/watchface/RenderParameters.HighlightedElement.UserStyle#hashCode())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff