Home > SCH_Event > addSimulationEnginePullEventListener
SCH_Event.addSimulationEnginePullEventListener() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
注册仿真引擎拉取事件监听
Signature
typescript
addSimulationEnginePullEventListener(id: string, eventType: 'all', callFn: (eventType: ESCH_DynamicSimulationEnginePullEventType | ESCH_SpiceSimulationEnginePullEventType, props: {
[key: string]: any;
}) => void | Promise<void>): void;1
2
3
2
3
Parameters
Parameter | Type | Description |
|---|---|---|
id | string | 事件 ID,用以防止重复注册事件 |
eventType | 'all' | 事件类型 |
callFn | (eventType: ESCH_DynamicSimulationEnginePullEventType | ESCH_SpiceSimulationEnginePullEventType, props: { [key: string]: any; }) => void | Promise<void> | 事件触发时的回调函数 |
Returns
void
Remarks
注意:本接口仅扩展有效,在独立脚本环境内调用将始终 throw Error