@univerjs/ui v0.4.2 • Docs
Class: DesktopLocalFileService
Extends
Implements
Constructors
new DesktopLocalFileService()
new DesktopLocalFileService(): DesktopLocalFileService
Returns
Inherited from
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
Methods
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
downloadFile()
downloadFile(data, fileName): void
Parameters
Parameter | Type |
---|---|
data | Blob |
fileName | string |
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
Defined in
packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)
openFile()
openFile(options?): Promise<File[]>
Parameters
Parameter | Type |
---|---|
options ? | IOpenFileOptions |
Returns
Promise
<File
[]>
Implementation of
Defined in
packages/ui/src/services/local-file/desktop-local-file.service.ts:22 (opens in a new tab)