emergencyFailureScreenshotFrame function
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,
);