MCPcopy Index your code
hub / github.com/callstack/agent-device / appendScreenshotScriptFlags

Function appendScreenshotScriptFlags

src/contracts/screenshot.ts:129–139  ·  view source on GitHub ↗
(
  parts: string[],
  flags: Partial<ScreenshotRequestFlags> | undefined,
)

Source from the content-addressed store, hash-verified

127}
128
129export function appendScreenshotScriptFlags(
130 parts: string[],
131 flags: Partial<ScreenshotRequestFlags> | undefined,
132): void {
133 if (flags?.screenshotFullscreen) parts.push('--fullscreen');
134 if (typeof flags?.screenshotMaxSize === 'number') {
135 parts.push('--max-size', String(flags.screenshotMaxSize));
136 }
137 if (flags?.screenshotNoStabilize) parts.push('--no-stabilize');
138 if (flags?.screenshotNormalizeStatusBar) parts.push('--normalize-status-bar');
139}
140
141export function readScreenshotScriptFlag(params: {
142 args: readonly string[];

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected