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

Method press_home

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

Source from the content-addressed store, hash-verified

672 }
673
674 pub fn press_home(&self, udid: &str) -> Result<(), AppError> {
675 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;
676 unsafe {
677 let mut error = ptr::null_mut();
678 bool_result(ffi::xcw_native_press_home(udid.as_ptr(), &mut error), error)
679 }
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()))?;

Callers 4

run_batch_stepFunction · 0.45
run_control_messageFunction · 0.45

Calls 3

bool_resultFunction · 0.85
xcw_native_press_homeFunction · 0.85

Tested by

no test coverage detected