isHostScreenshotCaptureFailure function

bool isHostScreenshotCaptureFailure(
  1. Object? error
)

Raster / encode failures from host screenshot capture (not app crashes).

Implementation

bool isHostScreenshotCaptureFailure(Object? error) {
  return classifyScreenshotCaptureFailure(error) ==
      ScreenshotCaptureFailureKind.renderCapture;
}