# CurrentUserStyleRepository

# CurrentUserStyleRepository

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/CurrentUserStyleRepository.kt+class:androidx.wear.watchface.style.CurrentUserStyleRepository)  
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/style/CurrentUserStyleRepository "View this page in Java")

<br />

```
class CurrentUserStyleRepository
```

<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

In memory storage for the current user style choices represented as a[MutableStateFlow](https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-mutable-state-flow/index.html)\<[UserStyle](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyle)\>.

use Watch Face Format instead

## Summary

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

|                                                                                                           ### Public properties                                                                                                            |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [UserStyleSchema](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSchema)                                                                                                                            | [schema](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository#schema()) **This property is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.       |
| [StateFlow](https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html)`<`[UserStyle](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyle)`>` | [userStyle](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository#userStyle()) **This property is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

## Public constructors

### CurrentUserStyleRepository

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)  

```
[CurrentUserStyleRepository](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository#CurrentUserStyleRepository(androidx.wear.watchface.style.UserStyleSchema))(schema: UserStyleSchema)
```
| **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                                                         |
|---------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `schema: `[UserStyleSchema](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSchema) | The[UserStyleSchema](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSchema)for this CurrentUserStyleRepository which describes the available style categories. |

## Public properties

### schema

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 schema: UserStyleSchema
```
| **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[UserStyleSchema](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSchema)for this CurrentUserStyleRepository which describes the available style categories.  

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

```
val userStyle: StateFlow<UserStyle>
```
| **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 current[UserStyle](https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyle). If accessed from java, consider using androidx.lifecycle.FlowLiveDataConversions.asLiveData to observe changes.