Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LocalStorageService

Hierarchy

  • LocalStorageService

Implements

Index

Properties

Protected logger

logger: ILogger

Protected Readonly messageService

messageService: MessageService

Private storage

storage: LocalStorage

Protected Readonly windowService

windowService: WindowService

Methods

Private clearStorage

  • clearStorage(): void

getData

  • getData<T>(key: string, defaultValue?: T): Promise<T | undefined>

Protected init

  • init(): void

Protected prefix

  • prefix(key: string): string

setData

  • setData<T>(key: string, data?: T): Promise<void>

Private showDiskQuotaExceededMessage

  • showDiskQuotaExceededMessage(): Promise<void>

Private testLocalStorage

  • 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