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