CurrentUserStyleRepository

public final class CurrentUserStyleRepository


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

Summary

Public fields

final @NonNull UserStyleSchema

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

final @NonNull StateFlow<@NonNull UserStyle>

The current UserStyle.

Public constructors

Public fields

schema

public final @NonNull UserStyleSchema schema

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

userStyle

public final @NonNull StateFlow<@NonNull UserStyleuserStyle

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

Public constructors

CurrentUserStyleRepository

public final CurrentUserStyleRepository(UserStyleSchema schema)
Parameters
UserStyleSchema schema

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