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

Method start_screen_recording

packages/server/src/native/bridge.rs:541–549  ·  view source on GitHub ↗
(&self, udid: &str)

Source from the content-addressed store, hash-verified

539 }
540
541 pub fn start_screen_recording(&self, udid: &str) -> Result<String, AppError> {
542 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;
543 let recording_id = unsafe {
544 let mut error = ptr::null_mut();
545 let raw = ffi::xcw_native_start_screen_recording(udid.as_ptr(), &mut error);
546 string_from_raw(raw, error)?
547 };
548 Ok(recording_id)
549 }
550
551 pub fn stop_screen_recording(&self, recording_id: &str) -> Result<Vec<u8>, AppError> {
552 let recording_id =

Callers 1

start_screen_recordingFunction · 0.80

Calls 2

string_from_rawFunction · 0.85

Tested by

no test coverage detected