(
bridge: &NativeBridge,
udid: &str,
x: f64,
y: f64,
duration_ms: u64,
)
| 5435 | } |
| 5436 | |
| 5437 | fn perform_tap( |
| 5438 | bridge: &NativeBridge, |
| 5439 | udid: &str, |
| 5440 | x: f64, |
| 5441 | y: f64, |
| 5442 | duration_ms: u64, |
| 5443 | ) -> Result<(), crate::error::AppError> { |
| 5444 | if bridge_simulator_is_tvos(bridge, udid) { |
| 5445 | return press_tvos_remote_key(bridge, udid, HID_KEY_ENTER); |
| 5446 | } |
| 5447 | let input = bridge.create_input_session(udid)?; |
| 5448 | perform_tap_with_input(&input, x, y, duration_ms) |
| 5449 | } |
| 5450 | |
| 5451 | fn perform_tap_with_input( |
| 5452 | input: &NativeInputSession, |
no test coverage detected