# UserStyleFlavor

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/UserStyleFlavors.kt+class:androidx.wear.watchface.style.UserStyleFlavor) 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)

*** ** * ** ***


```
public final class UserStyleFlavor
```

<br />

*** ** * ** ***

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

Represents user specified preset of watch face.

use Watch Face Format instead

## Summary

| ### Public constructors |
|---|
| `[UserStyleFlavor](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleFlavor#UserStyleFlavor(kotlin.String,androidx.wear.watchface.style.UserStyle,kotlin.collections.Map))( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html id, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/style/UserStyle style, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Integer.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy> complications )` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `[UserStyleFlavor](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleFlavor#UserStyleFlavor(kotlin.String,androidx.wear.watchface.style.UserStyleData,kotlin.collections.Map))( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html id, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleData style, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Integer.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy> complications )` **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/style/UserStyleFlavor#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/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Integer.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy>` | `[getComplications](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleFlavor#getComplications())()` **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/lang/String.html` | `[getId](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleFlavor#getId())()` **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/UserStyleData` | `[getStyle](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleFlavor#getStyle())()` **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/UserStyleFlavor#hashCode())()` **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/UserStyleFlavor#toString())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

## Public constructors

### UserStyleFlavor

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)

```
public [UserStyleFlavor](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleFlavor#UserStyleFlavor(kotlin.String,androidx.wear.watchface.style.UserStyle,kotlin.collections.Map))(
    @NonNull String id,
    @NonNull UserStyle style,
    @NonNull Map<@NonNull Integer, @NonNull DefaultComplicationDataSourcePolicy> complications
)
```

> [!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 UserStyleFlavor based on `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyle` specified.

### UserStyleFlavor

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)

```
public [UserStyleFlavor](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleFlavor#UserStyleFlavor(kotlin.String,androidx.wear.watchface.style.UserStyleData,kotlin.collections.Map))(
    @NonNull String id,
    @NonNull UserStyleData style,
    @NonNull Map<@NonNull Integer, @NonNull DefaultComplicationDataSourcePolicy> complications
)
```

> [!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/java/lang/String.html id` | An arbitrary string that uniquely identifies a flavor within the set of flavors supported by the watch face. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleData style` | Style info of the flavor represented by `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleData`. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Integer.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy> complications` | Specifies complication data source policy represented by `https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` for each ComplicationSlot.id presented in map. For absent complication slots default policies are used. |

## Public methods

### equals

```
public boolean [equals](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleFlavor#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

### getComplications

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)

```
public final @NonNull Map<@NonNull Integer, @NonNull DefaultComplicationDataSourcePolicy> [getComplications](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleFlavor#getComplications())()
```

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

Specifies complication data source policy represented by `https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` for each ComplicationSlot.id presented in map. For absent complication slots default policies are used.

### getId

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)

```
public final @NonNull String [getId](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleFlavor#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

An arbitrary string that uniquely identifies a flavor within the set of flavors supported by the watch face.

### getStyle

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)

```
public final @NonNull UserStyleData [getStyle](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleFlavor#getStyle())()
```

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

Style info of the flavor represented by `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleData`.

### hashCode

```
public int [hashCode](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleFlavor#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

### toString

```
public @NonNull String [toString](https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleFlavor#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