( udid: string, seconds = 5, )
| 155 | } |
| 156 | |
| 157 | export function recordSimulatorScreen( |
| 158 | udid: string, |
| 159 | seconds = 5, |
| 160 | ): Promise<Blob> { |
| 161 | return fetchSimulatorBlob( |
| 162 | `/api/simulators/${encodeURIComponent(udid)}/screen-recording`, |
| 163 | { |
| 164 | body: JSON.stringify({ seconds }), |
| 165 | method: "POST", |
| 166 | }, |
| 167 | ); |
| 168 | } |
| 169 | |
| 170 | export function startSimulatorScreenRecording( |
| 171 | udid: string, |
nothing calls this directly
no test coverage detected