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

Function stop_camera

packages/server/src/camera.rs:138–143  ·  view source on GitHub ↗
(udid: &str)

Source from the content-addressed store, hash-verified

136}
137
138pub fn stop_camera(udid: &str) -> Result<Value, AppError> {
139 validate_udid(udid)?;
140 native_stop_camera(udid)?;
141 let _ = fs::remove_file(injected_bundles_file(udid));
142 Ok(json!({ "ok": true, "udid": udid, "alive": false }))
143}
144
145fn native_start_camera(
146 udid: &str,

Callers

nothing calls this directly

Calls 3

validate_udidFunction · 0.85
native_stop_cameraFunction · 0.85
injected_bundles_fileFunction · 0.85

Tested by

no test coverage detected