@univerjsuiindexclassesDesktoplocalstorageservice

@univerjs/ui v0.5.4


Class: DesktopLocalStorageService

Defined in: submodules/univer/packages/ui/src/services/local-storage/local-storage.service.ts:20

Implements

Constructors

new DesktopLocalStorageService()

new DesktopLocalStorageService(): DesktopLocalStorageService

Returns

DesktopLocalStorageService

Methods

clear()

clear(): Promise<void>

Defined in: submodules/univer/packages/ui/src/services/local-storage/local-storage.service.ts:33

Returns

Promise<void>

Implementation of

ILocalStorageService.clear


getItem()

getItem<T>(key): Promise<null | T>

Defined in: submodules/univer/packages/ui/src/services/local-storage/local-storage.service.ts:21

Type Parameters

Type Parameter
T

Parameters

ParameterType
keystring

Returns

Promise<null | T>

Implementation of

ILocalStorageService.getItem


iterate()

iterate<T, U>(iteratee): Promise<U>

Defined in: submodules/univer/packages/ui/src/services/local-storage/local-storage.service.ts:45

Type Parameters

Type Parameter
T
U

Parameters

ParameterType
iteratee(value, key, iterationNumber) => U

Returns

Promise<U>

Implementation of

ILocalStorageService.iterate


key()

key(index): Promise<null | string>

Defined in: submodules/univer/packages/ui/src/services/local-storage/local-storage.service.ts:37

Parameters

ParameterType
indexnumber

Returns

Promise<null | string>

Implementation of

ILocalStorageService.key


keys()

keys(): Promise<string[]>

Defined in: submodules/univer/packages/ui/src/services/local-storage/local-storage.service.ts:41

Returns

Promise<string[]>

Implementation of

ILocalStorageService.keys


removeItem()

removeItem(key): Promise<void>

Defined in: submodules/univer/packages/ui/src/services/local-storage/local-storage.service.ts:29

Parameters

ParameterType
keystring

Returns

Promise<void>

Implementation of

ILocalStorageService.removeItem


setItem()

setItem<T>(key, value): Promise<T>

Defined in: submodules/univer/packages/ui/src/services/local-storage/local-storage.service.ts:25

Type Parameters

Type Parameter
T

Parameters

ParameterType
keystring
valueT

Returns

Promise<T>

Implementation of

ILocalStorageService.setItem