(
udid: string,
options: { withBezel?: boolean } = {},
)
| 145 | } |
| 146 | |
| 147 | export 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 | |
| 157 | export function recordSimulatorScreen( |
| 158 | udid: string, |
no test coverage detected