Options
All
  • Public
  • Public/Protected
  • All
Menu

A class that provides utilities to interact with browser local storage.

class

Hierarchy

  • LocalStorage

Index

Methods

Static deserialize

Static getPreference

  • getPreference(key: string): any
  • Retrieves a preference from local storage.

    static

    Parameters

    • key: string

      The key of the preference to retrieve.

    Returns any

    Returns the preference object.

Static Private getRawData

Static Private getRawPreferences

Static getVariable

  • Retrieves a single Variable from local storage.

    static

    Parameters

    • key: string

      The key if the Variable to retrieve.

    Returns Variable

Static savePreference

  • savePreference(key: string, value: any): void
  • Saves a preference to local storage.

    static

    Parameters

    • key: string

      The preference key.

    • value: any

      The preference value.

    Returns void

Static Private saveRawData

Static Private saveRawPreferences

Static saveVariable

  • saveVariable(variable: Variable): void

Generated using TypeDoc