Touch Input

Capture Flutter app touch input through the native iOS and Android capture paths.

final options = createOptionsBuilder()
    .withTouchCapture(
      const AnsightTouchCaptureOptions(
        captureMoveEvents: true,
        moveCaptureFramesPerSecond: 20,
      ),
    )
    .build();

Use Ansight.instance.enableTouchCapture() and disableTouchCapture() while the runtime is active.

Touch events can contain coordinates and gesture timing. Keep capture development-only and disable it for sensitive screens or performance-focused runs.