MovaTestKernel constructor

MovaTestKernel({
  1. Object? renderHandle,
  2. bool nativeRestartAvailable = false,
  3. List<MovaTestStep>? script,
})

Creates a test kernel.

创建一个测试内核。

  • renderHandle: what the player reports as its render handle; null (default) makes MovaPlayer draw 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 []);