MovaTestKernel constructor
MovaTestKernel({
- Object? renderHandle,
- bool nativeRestartAvailable = false,
- List<
MovaTestStep> ? script,
Creates a test kernel.
创建一个测试内核。
renderHandle: what the player reports as its render handle;null(default) makesMovaPlayerdraw its placeholder / 播放器对外报告的渲染句柄; 默认null,此时MovaPlayer绘制占位nativeRestartAvailable: pretend the native restart subscription is live.false(default) makes buffering/position fallbacks land the first frame immediately, with no grace timer left pending / 假装原生 RESTART 订阅在工作。默认false:buffering/位置兜底会立刻落地首帧,不会留下挂起的宽限计时器script为可选行为脚本;省略时继续完全被动,由宿主手工 emit。 每次成功 open 从头执行,换源或 dispose 取消旧脚本;返回测试内核。 示例:MovaTestKernel(script: [MovaTestStep.ready()])。
Implementation
MovaTestKernel({
this.renderHandle,
this.nativeRestartAvailable = false,
List<MovaTestStep>? script,
}) : _script = List.unmodifiable(script ?? const []);