pub async fn swipe(
host: &Host,
device_id: &str,
from: (u32, u32),
to: (u32, u32),
duration_ms: Option<u32>,
options: &GestureOptions,
) -> Result<GestureResult>Expand description
Perform a swipe gesture on a device.
§Arguments
device_id- Device identifierfrom- Starting coordinates (x, y)to- Ending coordinates (x, y)duration_ms- Duration of the swipe in millisecondsoptions- Gesture options including diff settings
§Errors
Returns an error if the swipe fails or the device is not available.