# UserStyleSetting.CustomValueUserStyleSetting.CustomValueOption

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.CustomValueUserStyleSetting.CustomValueOption) 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 UserStyleSetting.CustomValueUserStyleSetting.CustomValueOption extends UserStyleSetting.Option
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.wear.watchface.style.UserStyleSetting.Option](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.Option) ||
|   | ↳ | [androidx.wear.watchface.style.UserStyleSetting.CustomValueUserStyleSetting.CustomValueOption](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.CustomValueUserStyleSetting.CustomValueOption) |

*** ** * ** ***

> [!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

An application specific custom value. NB the `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.CustomValueUserStyleSetting.CustomValueOption#customValue()` is the same as the `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.Option#id()`.

## Summary

| ### Public constructors |
|---|
| `[CustomValueOption](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.CustomValueUserStyleSetting.CustomValueOption#CustomValueOption(kotlin.ByteArray))(@https://developer.android.com/reference/androidx/annotation/NonNull byte[] customValue)` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull byte[]` | `[getCustomValue](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.CustomValueUserStyleSetting.CustomValueOption#getCustomValue())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `[toString](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.CustomValueUserStyleSetting.CustomValueOption#toString())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

| ### Inherited methods |
|---|
| From [androidx.wear.watchface.style.UserStyleSetting.Option](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.Option) |---|---| | `boolean` | `[equals](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.Option#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/java/util/Collection.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting>` | `[getChildSettings](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.Option#getChildSettings())()` **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.Option.Id` | `[getId](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.Option#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/style/UserStyleSetting.Option#hashCode())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. | |

## Public constructors

### CustomValueOption

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 [CustomValueOption](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.CustomValueUserStyleSetting.CustomValueOption#CustomValueOption(kotlin.ByteArray))(@NonNull byte[] customValue)
```

> [!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

Constructs a CustomValueOption.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull byte[] customValue` | The `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.Option#id()` and value of this CustomValueOption. This may not exceed `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.Option.Id#MAX_LENGTH()`. |

## Public methods

### getCustomValue

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 byte[] [getCustomValue](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.CustomValueUserStyleSetting.CustomValueOption#getCustomValue())()
```

> [!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://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html` value for this option which is the same as the `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.Option#id()`. Note the maximum size in bytes is `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.Option.Id#MAX_LENGTH()`.

### toString

```
public @NonNull String [toString](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.CustomValueUserStyleSetting.CustomValueOption#toString())()
```

> [!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