@univerjscoreinterfacesIresourcemanagerservice

@univerjs/core v0.5.4


Interface: IResourceManagerService

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

Properties

PropertyTypeDefined in
disposePluginResource(pluginName: `SHEET_${string}_PLUGIN` | `DOC_${string}_PLUGIN`) => voidpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:39
getAllResourceHooks() => IResourceHook[]packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:40
getResourcesByType(unitId: string, type: UniverInstanceType) => IResourcespackages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:47
loadResources(unitId: string, resources?: IResources) => voidpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:48
register$Observable<IResourceHook>packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:37
registerPluginResource<T>(hook: IResourceHook<T>) => IDisposablepackages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:38

Methods

getResources()

Call Signature

getResources(unitId): IResources

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

Parameters
ParameterType
unitIdstring
Returns

IResources

Deprecated

You should get resource with type specified.

Call Signature

getResources(unitId, type): IResources

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

Parameters
ParameterType
unitIdstring
typeUniverInstanceType
Returns

IResources


unloadResources()

unloadResources(unitId): void

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

Parameters

ParameterType
unitIdstring

Returns

void