MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / onSimulatorHostReady

Method onSimulatorHostReady

packages/shell/src/api/project.ts:201–206  ·  view source on GitHub ↗

* 当前 project 的模拟器 ready 事件

(fn: (host: IPublicApiSimulatorHost) => void)

Source from the content-addressed store, hash-verified

199 * 当前 project 的模拟器 ready 事件
200 */
201 onSimulatorHostReady(fn: (host: IPublicApiSimulatorHost) => void): IPublicTypeDisposable {
202 const offFn = this[projectSymbol].onSimulatorReady((simulator: BuiltinSimulatorHost) => {
203 fn(SimulatorHost.create(simulator)!);
204 });
205 return offFn;
206 }
207
208 /**
209 * 当前 project 的渲染器 ready 事件

Callers

nothing calls this directly

Calls 2

onSimulatorReadyMethod · 0.65
createMethod · 0.45

Tested by

no test coverage detected