@univerjsuiindexclassesDesktoplocalfileservice

@univerjs/ui v0.5.4


Class: DesktopLocalFileService

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

Extends

Implements

Constructors

new DesktopLocalFileService()

new DesktopLocalFileService(): DesktopLocalFileService

Returns

DesktopLocalFileService

Inherited from

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96

Methods

dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


downloadFile()

downloadFile(data, fileName): void

Defined in: submodules/univer/packages/ui/src/services/local-file/desktop-local-file.service.ts:38

Parameters

ParameterType
dataBlob
fileNamestring

Returns

void

Implementation of

ILocalFileService.downloadFile


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


openFile()

openFile(options?): Promise<File[]>

Defined in: submodules/univer/packages/ui/src/services/local-file/desktop-local-file.service.ts:22

Parameters

ParameterType
options?IOpenFileOptions

Returns

Promise<File[]>

Implementation of

ILocalFileService.openFile