# UserStyleFlavor

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

*** ** * ** ***

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

<br />

```
class UserStyleFlavor
```

<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

Represents user specified preset of watch face.

use Watch Face Format instead

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                   ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ~~[UserStyleFlavor](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleFlavor#UserStyleFlavor(kotlin.String,androidx.wear.watchface.style.UserStyle,kotlin.collections.Map))~~`(` ` id: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`,` ` style: `[UserStyle](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyle)`,` ` complications: `[Map](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html)`<`[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, `[DefaultComplicationDataSourcePolicy](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy)`>` `)` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.             |
| ~~[UserStyleFlavor](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleFlavor#UserStyleFlavor(kotlin.String,androidx.wear.watchface.style.UserStyleData,kotlin.collections.Map))~~`(` ` id: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`,` ` style: `[UserStyleData](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleData)`,` ` complications: `[Map](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html)`<`[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, `[DefaultComplicationDataSourcePolicy](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy)`>` `)` **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/style/UserStyleFlavor#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/style/UserStyleFlavor#hashCode())~~`()` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.                                                                                            |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | ~~[toString](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleFlavor#toString())~~`()` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.                                                                                            |

|                                                                                                                                                            ### Public properties                                                                                                                                                            |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Map](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html)`<`[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, `[DefaultComplicationDataSourcePolicy](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy)`>` | [complications](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleFlavor#complications()) **This property is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                                                                                                                                                                                                                           | [id](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleFlavor#id()) **This property is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.                       |
| [UserStyleData](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleData)                                                                                                                                                                                                                                 | [style](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleFlavor#style()) **This property 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)  

```
[UserStyleFlavor](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleFlavor#UserStyleFlavor(kotlin.String,androidx.wear.watchface.style.UserStyle,kotlin.collections.Map))(
    id: String,
    style: UserStyle,
    complications: Map<Int, DefaultComplicationDataSourcePolicy>
)
```
| **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

Constructs UserStyleFlavor based on[UserStyle](https://developer.android.com/reference/kotlin/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)  

```
[UserStyleFlavor](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleFlavor#UserStyleFlavor(kotlin.String,androidx.wear.watchface.style.UserStyleData,kotlin.collections.Map))(
    id: String,
    style: UserStyleData,
    complications: Map<Int, DefaultComplicationDataSourcePolicy>
)
```
| **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: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                                                                                                                                                                                                                                      | An arbitrary string that uniquely identifies a flavor within the set of flavors supported by the watch face.                                                                                                                                                                                                                   |
| `style: `[UserStyleData](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleData)                                                                                                                                                                                                                                         | Style info of the flavor represented by[UserStyleData](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleData).                                                                                                                                                                            |
| `complications: `[Map](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html)`<`[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, `[DefaultComplicationDataSourcePolicy](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy)`>` | Specifies complication data source policy represented by[DefaultComplicationDataSourcePolicy](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy)for each ComplicationSlot.id presented in map. For absent complication slots default policies are used. |

## Public functions

### equals

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

### toString

```
open fun [toString](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleFlavor#toString())(): String
```
| **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

### complications

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)  

```
val complications: Map<Int, DefaultComplicationDataSourcePolicy>
```
| **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

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

### id

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)  

```
val id: String
```
| **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

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

### style

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)  

```
val style: UserStyleData
```
| **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

Style info of the flavor represented by[UserStyleData](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleData).