-
public interface Configurable<S extends Configurable.Settings, P extends Configurable.Preferences<P>>A Configurable is a component with a set of configurable Settings.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceConfigurable.SettingsMarker interface for the Settings properties holder.
public interfaceConfigurable.PreferencesMarker interface for the Preferences properties holder.
-
Method Summary
Modifier and Type Method Description abstract UnitsubmitPreferences(P preferences)Submits a new set of Preferences to update the current Settings. abstract StateFlow<S>getSettings()Current Settings values. -
-
Method Detail
-
submitPreferences
abstract Unit submitPreferences(P preferences)
Submits a new set of Preferences to update the current Settings.
Note that the Configurable might not update its settings right away, or might even ignore some of the provided preferences. They are only used as hints to compute the new settings.
-
getSettings
abstract StateFlow<S> getSettings()
Current Settings values.
-
-
-
-