UserSettingField

data class UserSettingField(val key: String, val label: String, val hint: String = "", val defaultValue: String = "", val inputType: UserSettingInputType = UserSettingInputType.TEXT)

Describes a single user-configurable setting field.

The host renders an appropriate input widget for each field and persists the value. Values are available at runtime via UniversalAppContext.settings.

Constructors

Link copied to clipboard
constructor(key: String, label: String, hint: String = "", defaultValue: String = "", inputType: UserSettingInputType = UserSettingInputType.TEXT)

Properties

Link copied to clipboard

Default value if the user hasn't configured one.

Link copied to clipboard

Placeholder text shown when the field is empty.

Link copied to clipboard

Input type hint for the host UI.

Link copied to clipboard
val key: String

Unique key used to store/retrieve the value (e.g. "ai_api_base_url").

Link copied to clipboard

Label displayed above/beside the input field.