emergencyFailureScreenshotFrame function

ScreenshotSheetFrame emergencyFailureScreenshotFrame({
  1. required Image image,
  2. String? deviceId,
  3. String? deviceLabel,
  4. String? platform,
  5. String? model,
})

Builds the common report frame for orchestration-level failures.

Callers resolve device metadata according to their execution mode before calling this helper. Hosted and standalone capture timing and fallback policies therefore remain owned by their respective adapters.

Implementation

ScreenshotSheetFrame emergencyFailureScreenshotFrame({
  required ui.Image image,
  String? deviceId,
  String? deviceLabel,
  String? platform,
  String? model,
}) =>
    ScreenshotSheetFrame(
      stepIndex: 0,
      label: 'Runner failure',
      image: image,
      deviceId: deviceId,
      deviceLabel: deviceLabel,
      platform: platform,
      model: model,
    );