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
publicCurrentUserStyleRepository(@NonNull UserStyleSchema schema)
| Parameters | |
|---|---|
@NonNull UserStyleSchema schema |
The |
Public methods
getSchema
public final @NonNull UserStyleSchemagetSchema()
The UserStyleSchema for this CurrentUserStyleRepository which describes the available style categories.
getUserStyle
public final @NonNull StateFlow<@NonNull UserStyle>getUserStyle()
The current UserStyle. If accessed from java, consider using androidx.lifecycle.FlowLiveDataConversions.asLiveData to observe changes.