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
Inherited from
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
register$ | public | Observable <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
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
Parameter | Type |
---|---|
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
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getAllResourceHooks()
getAllResourceHooks(): IResourceHook[]
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/resource-manager.service.ts:29
Returns
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
Parameter | Type |
---|---|
unitId | string |
Returns
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
Parameter | Type |
---|---|
unitId | string |
type | UniverInstanceType |
Returns
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
Parameter | Type |
---|---|
unitId | string |
type | UniverInstanceType |
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
Parameter | Type |
---|---|
unitId | string |
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 Parameter | Default type |
---|---|
T | unknown |
Parameters
Parameter | Type |
---|---|
hook | IResourceHook <T > |
Returns
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
Parameter | Type |
---|---|
unitId | string |
Returns
void