MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / captureSimulatorScreenshot

Function captureSimulatorScreenshot

packages/client/src/api/controls.ts:147–155  ·  view source on GitHub ↗
(
  udid: string,
  options: { withBezel?: boolean } = {},
)

Source from the content-addressed store, hash-verified

145}
146
147export function captureSimulatorScreenshot(
148 udid: string,
149 options: { withBezel?: boolean } = {},
150): Promise<Blob> {
151 const params = options.withBezel ? "?bezel=true" : "";
152 return fetchSimulatorBlob(
153 `/api/simulators/${encodeURIComponent(udid)}/screenshot.png${params}`,
154 );
155}
156
157export function recordSimulatorScreen(
158 udid: string,

Callers 1

Calls 1

fetchSimulatorBlobFunction · 0.85

Tested by

no test coverage detected