See the gestures behind app behavior

Put Flutter touch and pointer input in session context so you can investigate the actions behind visible app behavior.

Touch and pointer evidence helps you connect user actions with the result on screen. Capture supported input on Android, iOS, and macOS alongside the other evidence in a Flutter session.

Configure capture:

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

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

Android and iOS use their native touch-capture paths. On macOS, AnsightFlutterCaptureBoundary streams pointer down, move, up, and cancel events from the wrapped Flutter surface as retained session touch evidence. Native AppKit input outside the boundary is not captured.

The native mobile paths also retain available Apple Pencil and Android stylus/eraser pressure or force, angles, hover, and finer move samples. Hardware-dependent fields are omitted when unavailable. The macOS Flutter boundary records pointer events without those native pen sensor fields.

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