MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / start_screen_recording

Function start_screen_recording

packages/server/src/api/routes.rs:2521–2536  ·  view source on GitHub ↗
(
    State(state): State<AppState>,
    Path(udid): Path<String>,
)

Source from the content-addressed store, hash-verified

2519}
2520
2521async fn start_screen_recording(
2522 State(state): State<AppState>,
2523 Path(udid): Path<String>,
2524) -> Result<Json<Value>, AppError> {
2525 if android::is_android_id(&udid) {
2526 return Err(AppError::bad_request(
2527 "Screen recording is currently supported for iOS simulators only.",
2528 ));
2529 }
2530 let recording_id =
2531 run_bridge_action(state, move |bridge| bridge.start_screen_recording(&udid)).await?;
2532 Ok(Json(json_value!({
2533 "ok": true,
2534 "recordingId": recording_id,
2535 })))
2536}
2537
2538async fn stop_screen_recording(
2539 State(state): State<AppState>,

Callers

nothing calls this directly

Calls 3

is_android_idFunction · 0.85
run_bridge_actionFunction · 0.85

Tested by

no test coverage detected