captureApp method

  1. @override
Future<VantageCapture?> captureApp({
  1. double pixelRatio = 1.0,
})
override

Rasterizes the app subtree (the core-owned boundary above the app, inside the active simulation — i.e. what the user sees, without the HUD chrome).

Returns null — never throws — when capture is unavailable: before the first paint, when Vantage.appBuilder was not mounted, on targets where rasterization is unsupported, or when pixelRatio is outside (0, 8]. Every caller MUST handle null.

Implementation

@override
Future<VantageCapture?> captureApp({double pixelRatio = 1.0}) async {
  lastCapturePixelRatio = pixelRatio;
  return captureResult;
}