Class PreferenceController
Methods
_request
Parameters
Returns Promise<any>
getPreference
- getPreference(preferenceKey: string): Promise<unknown>
Parameters
Returns Promise<unknown>
loadPreferenceMap
- loadPreferenceMap(): Promise<Record<string, unknown>>
Returns Promise<Record<string, unknown>>
setPreference
- setPreference(preferenceKey: string, preferenceValue: unknown): Promise<ErrorCodeType>
Parameters
preferenceKey: string
preferenceValue: unknown
updatePreferenceMap
- updatePreferenceMap(settings: Record<string, unknown>): Promise<ErrorCodeType>
Parameters
settings: Record<string, unknown>
Get a preference 's value.