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

Method open_app_switcher

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

Source from the content-addressed store, hash-verified

680 }
681
682 pub fn open_app_switcher(&self, udid: &str) -> Result<(), AppError> {
683 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;
684 unsafe {
685 let mut error = ptr::null_mut();
686 bool_result(
687 ffi::xcw_native_open_app_switcher(udid.as_ptr(), &mut error),
688 error,
689 )
690 }
691 }
692
693 pub fn press_button(&self, udid: &str, button: &str, duration_ms: u32) -> Result<(), AppError> {
694 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;

Callers 4

run_batch_stepFunction · 0.45
run_control_messageFunction · 0.45

Calls 3

bool_resultFunction · 0.85

Tested by

no test coverage detected