Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LocalStorageService

Hierarchy

  • LocalStorageService

Implements

Index

Constructors

Properties

logger: ILogger
messageService: MessageService
storage: LocalStorage
windowService: WindowService

Methods

  • clearStorage(): void
  • getData<T>(key: string, defaultValue?: T): Promise<undefined | T>
  • init(): void
  • prefix(key: string): string
  • setData<T>(key: string, data?: T): Promise<void>
  • showDiskQuotaExceededMessage(): Promise<void>
  • testLocalStorage(): void
  • Verify if there is still some spaces left to save another workspace configuration into the local storage of your browser. If we are close to the limit, use a dialog to notify the user.

    Returns void