Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PreferenceController

Index

Constructors

Methods

  • getPreference(preferenceKey: string): Promise<unknown>
  • Get a preference 's value.

    Parameters

    • preferenceKey: string

    Returns Promise<unknown>

  • loadPreferenceMap(): Promise<Record<string, unknown>>
  • Load all preferences.

    Returns Promise<Record<string, unknown>>

  • setPreference(preferenceKey: string, preferenceValue: unknown): Promise<ErrorCodeType>
  • Set a preference with key and value.

    Parameters

    • preferenceKey: string
    • preferenceValue: unknown

    Returns Promise<ErrorCodeType>

  • updatePreferenceMap(settings: Record<string, unknown>): Promise<ErrorCodeType>
  • Update all settings with key-value map.

    Parameters

    • settings: Record<string, unknown>

    Returns Promise<ErrorCodeType>