@univerjscoreclassesResourcemanagerservice

@univerjs/core v0.5.4


Class: ResourceManagerService

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/resource-manager.service.ts:23

Extends

Implements

Constructors

new ResourceManagerService()

new ResourceManagerService(): ResourceManagerService

Returns

ResourceManagerService

Inherited from

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96
register$publicObservable<IResourceHook>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/resource-manager.service.ts:27

Methods

dispose()

dispose(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/resource-manager.service.ts:98

Returns

void

Overrides

Disposable.dispose


disposePluginResource()

disposePluginResource(pluginName): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/resource-manager.service.ts:74

Parameters

ParameterType
pluginName`SHEET_${string}_PLUGIN` | `DOC_${string}_PLUGIN`

Returns

void

Implementation of

IResourceManagerService.disposePluginResource


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getAllResourceHooks()

getAllResourceHooks(): IResourceHook[]

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/resource-manager.service.ts:29

Returns

IResourceHook[]

Implementation of

IResourceManagerService.getAllResourceHooks


getResources()

Call Signature

getResources(unitId): IResources

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/resource-manager.service.ts:34

Parameters
ParameterType
unitIdstring
Returns

IResources

Deprecated

You should get resource with type specified.

Implementation of

IResourceManagerService.getResources

Call Signature

getResources(unitId, type): IResources

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/resource-manager.service.ts:35

Parameters
ParameterType
unitIdstring
typeUniverInstanceType
Returns

IResources

Implementation of

IResourceManagerService.getResources


getResourcesByType()

getResourcesByType(unitId, type): {
  data: string;
  name: `SHEET_${string}_PLUGIN` | `DOC_${string}_PLUGIN`;
 }[]

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/resource-manager.service.ts:52

Parameters

ParameterType
unitIdstring
typeUniverInstanceType

Returns

{ data: string; name: `SHEET_${string}_PLUGIN` | `DOC_${string}_PLUGIN`; }[]

Implementation of

IResourceManagerService.getResourcesByType


loadResources()

loadResources(unitId, resources?): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/resource-manager.service.ts:78

Parameters

ParameterType
unitIdstring
resources?IResources

Returns

void

Implementation of

IResourceManagerService.loadResources


registerPluginResource()

registerPluginResource<T>(hook): IDisposable

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/resource-manager.service.ts:64

Type Parameters

Type ParameterDefault type
Tunknown

Parameters

ParameterType
hookIResourceHook<T>

Returns

IDisposable

Implementation of

IResourceManagerService.registerPluginResource


unloadResources()

unloadResources(unitId): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/resource-manager.service.ts:92

Parameters

ParameterType
unitIdstring

Returns

void

Implementation of

IResourceManagerService.unloadResources