CurrentUserStyleRepository


Note: As of July 10, 2024, watch faces must use the Watch Face Format in order to be installed on new watches that launch with Wear OS 5 pre-installed. Learn more about the user-facing changes in this Help Center article.

Additionally, starting in early 2025 (specific date to be announced during Q4 2024), all new watch faces published on Google Play must use the Watch Face Format.

class CurrentUserStyleRepository


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

Summary

Public constructors

Public properties

UserStyleSchema

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

StateFlow<UserStyle>

The current UserStyle.

Public constructors

CurrentUserStyleRepository

Added in 1.0.0
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
val schemaUserStyleSchema

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

userStyle

Added in 1.0.0
val userStyleStateFlow<UserStyle>

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