API Reference > ui-core > UiSettings > UiSetting > constructor constructor Method Constructor UiSetting<T>(settingNamespace: string, settingName: string, getValue: () => T, applyValue?: (v: T) => void, defaultValue?: T): UiSetting<T> Parameter Type Description settingNamespace string Namespace for the setting, passed to UiSettings. settingName string Name for the setting, passed to UiSettings. getValue () => T Function for getting the value from the application. applyValue (v: T) => void Function for applying the setting value to the application. defaultValue T Optional default value if not already stored. Returns - UiSetting<T> Defined in ui/core/src/ui-core/uisettings/UiSetting.ts Line 22 Last Updated: 11 June, 2024