CurrentUserStyleRepository


class CurrentUserStyleRepository


In memory storage for the current user style choices represented as a MutableStateFlow<UserStyle>.

use Watch Face Format instead

Summary

Public constructors

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public properties

UserStyleSchema

This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

StateFlow<UserStyle>

This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public constructors

CurrentUserStyleRepository

Added in 1.0.0
Deprecated in 1.3.0-alpha06
CurrentUserStyleRepository(schema: UserStyleSchema)
Parameters
schema: UserStyleSchema

The UserStyleSchema for this CurrentUserStyleRepository which describes the available style categories.

Public properties

schema

Added in 1.0.0
Deprecated in 1.3.0-alpha06
val schemaUserStyleSchema

The UserStyleSchema for this CurrentUserStyleRepository which describes the available style categories.

userStyle

Added in 1.0.0
Deprecated in 1.3.0-alpha06
val userStyleStateFlow<UserStyle>

The current UserStyle. If accessed from java, consider using androidx.lifecycle.FlowLiveDataConversions.asLiveData to observe changes.