Interface: IResourceManagerService
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:36
Properties
Property | Type | Defined in |
---|---|---|
disposePluginResource | (pluginName : `SHEET_${string}_PLUGIN` | `DOC_${string}_PLUGIN` ) => void | packages/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 ) => IResources | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:47 |
loadResources | (unitId : string , resources ?: IResources ) => void | packages/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 >) => IDisposable | packages/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
Parameter | Type |
---|---|
unitId | string |
Returns
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
Parameter | Type |
---|---|
unitId | string |
type | UniverInstanceType |
Returns
unloadResources()
unloadResources(unitId): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:49
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void