API Reference
@univerjs
@univerjs/ui
classes
Desktoplocalfileservice

@univerjs/ui v0.4.2Docs


Class: DesktopLocalFileService

Extends

Implements

Constructors

new DesktopLocalFileService()

new DesktopLocalFileService(): DesktopLocalFileService

Returns

DesktopLocalFileService

Inherited from

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


downloadFile()

downloadFile(data, fileName): void

Parameters

ParameterType
dataBlob
fileNamestring

Returns

void

Implementation of

ILocalFileService.downloadFile

Defined in

packages/ui/src/services/local-file/desktop-local-file.service.ts:38 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


openFile()

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

Parameters

ParameterType
options?IOpenFileOptions

Returns

Promise<File[]>

Implementation of

ILocalFileService.openFile

Defined in

packages/ui/src/services/local-file/desktop-local-file.service.ts:22 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.