CurrentUserStyleRepository


public final 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 method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public methods

final @NonNull UserStyleSchema

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

final @NonNull StateFlow<@NonNull UserStyle>

This method 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
public CurrentUserStyleRepository(@NonNull UserStyleSchema schema)
Parameters
@NonNull UserStyleSchema schema

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

Public methods

getSchema

Added in 1.0.0
Deprecated in 1.3.0-alpha06
public final @NonNull UserStyleSchema getSchema()

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

getUserStyle

Added in 1.0.0
Deprecated in 1.3.0-alpha06
public final @NonNull StateFlow<@NonNull UserStylegetUserStyle()

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