core/commands/native_swipe/native_swipe library

Functions

nativeSwipe(NativeSwipeInput input, {HidProcessRunner? runner}) → Future<NativeSwipeResult>
Injects an OS gesture on the recorded session device, without contacting the VM. Coordinates are iOS points or Android physical pixels in the current orientation. Never throws or falls back to Flutter gestures.
parseAndroidSwipeScreen(String dump) → ({int height, int width})?
Reads the current display-0 input frame, already rotated and accounting for resolution overrides. Refuses unknown dumps rather than using portrait wm size.
validateNativeSwipe(NativeSwipeInput input) → String?
Shared validation for CLI and library callers, before any native touch down.

Typedefs

NativeSwipeInput = ({int durationMs, double fromX, double fromY, double toX, double toY})