ensureReady static method

Future<void> ensureReady()

确保 init + startReport 均已执行(回放页等独立入口调用)。

Implementation

static Future<void> ensureReady() async {
  if (!_initialized) {
    await init();
  }
  if (!_reportStarted) {
    await startReport();
  }
}