@univerjscoreinterfacesIresourcemanagerservice

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


Interface: IResourceManagerService

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<any>[]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<any>>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()

getResources(unitId)

getResources(unitId): IResources
Parameters
ParameterType
unitIdstring
Returns

IResources

Deprecated

You should get resource with type specified.

Defined in

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

getResources(unitId, type)

getResources(unitId, type): IResources
Parameters
ParameterType
unitIdstring
typeUniverInstanceType
Returns

IResources

Defined in

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


unloadResources()

unloadResources(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Defined in

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