Setting

class Setting<T : Enum<T>, IValuedEnum<*>>

A per-setting ID wrapper to perform all setting queries

Parameters

T

Setting data type

enum

Enum data type

See also

Functions

Link copied to clipboard
suspend fun getCapabilities(): Result<List<T>>

Get the current setting's capabilities

Link copied to clipboard
suspend fun getValue(): Result<T>

Get the current setting value

Link copied to clipboard
suspend fun registerCapabilityUpdates(): Result<Flow<List<T>>>

Register for setting capability updates

Link copied to clipboard
suspend fun registerValueUpdates(): Result<Flow<T>>

Register for setting value updates

Link copied to clipboard
suspend fun setValue(value: T): Result<Unit>

Set the setting to a desired value

Link copied to clipboard

Unregister for setting capability updates

Link copied to clipboard

Unregister for setting value updates