Kui API Documentation - v11.0.0 / @kui-shell/core / Settings
@kui-shell/core.Settings
▸ getOrSetPreference(key
, defaultValue
): Promise
<string
>
Name | Type |
---|---|
key |
string |
defaultValue |
string | () => string | Promise <string > |
Promise
<string
>
packages/core/src/core/userdata.ts:187
▸ Const
getPreference(key
): Promise
<string
>
Get a persisted preference
Name | Type |
---|---|
key |
string |
Promise
<string
>
the preference value
packages/core/src/core/userdata.ts:166
▸ Const
setPreference(key
, value
): Promise
<string
>
Set a persisted preference
Name | Type |
---|---|
key |
string |
value |
string |
Promise
<string
>
the preference value
packages/core/src/core/userdata.ts:179
▸ uiThemes(): Promise
<ThemeSet
[]>
Promise
<ThemeSet
[]>
packages/core/src/core/settings.ts:21
▸ Const
userDataDir(): string
Get the userdata directory
string