@univerjsuiindexclassesDesktoplocalfileservice

@univerjs/ui v0.5.0-beta.1Docs


Class: DesktopLocalFileService

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:93

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


downloadFile()

downloadFile(data, fileName): void

Parameters

ParameterType
dataBlob
fileNamestring

Returns

void

Implementation of

ILocalFileService.downloadFile

Defined in

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


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


openFile()

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

Parameters

ParameterType
options?IOpenFileOptions

Returns

Promise<File[]>

Implementation of

ILocalFileService.openFile

Defined in

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