(&self, udid: &str)
| 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()))?; |
no test coverage detected