Integrates touch input simulation with screen recording for comprehensive visual testing. Records frames during touch interactions, gestures, scrolling, and animations. Also supports keyboard and mouse input simulation with recording.
public class RecordedTouchSimulator : IDisposable
kind:method, kind:property, kind:ctor. Press Esc to clear.RecordedTouchSimulator()Creates a new recorded touch simulator.CaptureAfterGestureGets or sets whether to capture a frame after each gesture ends.CaptureBeforeGestureGets or sets whether to capture a frame before each gesture starts.FramesPerStepGets or sets the number of frames to capture per gesture step.IsRecordingGets whether recording is currently active.KeyboardSimulatorGets the underlying keyboard input simulator.MouseSimulatorGets the underlying mouse input simulator.RecorderGets the underlying screen recorder.TouchSimulatorGets the underlying touch input simulator.UseRenderHookGets or sets whether to use render hook for automatic frame capture. When true, frames are captured automatically when the compositor renders.AddMarker(String, Object?)Adds a marker to the recording.CaptureFrame()Captures a frame at the current state.ConvertToVideo(String?, VideoConversionOptions?)Converts the current recording session's PNG output to a video file.ConvertToVideoAsync(String?, VideoConversionOptions?, CancellationToken)Converts the current recording session's PNG output to a video file asynchronously.Dispose()Disposes the simulator and recorder.RecordActionAsync(Func<Task>, Int32)Records frames during an async action.RecordAnimationAsync(TimeSpan, Int32)Records frames for a specified duration while allowing animations to run.RecordedArrowNavigation(Interactive, Key[], Int32)Simulates recorded arrow key navigation with frame capture.RecordedDoubleTap(Interactive, Point, Int32)Simulates a recorded double tap gesture.RecordedDrag(Interactive, Point, Point, Int32)Simulates a recorded drag gesture with frame capture at each step.RecordedKeyboardShortcut(Interactive, Key, KeyModifiers)Simulates a recorded keyboard shortcut with frame capture.RecordedKeyPress(Interactive, Key, Int32, Nullable<KeyModifiers>)Simulates a recorded key press with frame capture.RecordedMouseClick(Interactive, Point, MouseButton, Int32)Simulates a recorded mouse click with frame capture.RecordedMouseDoubleClick(Interactive, Point, MouseButton, Int32)Simulates a recorded mouse double-click with frame capture.RecordedMouseDrag(Interactive, Point, Point, MouseButton, Int32)Simulates a recorded mouse drag with frame capture.RecordedMouseHover(Interactive, Point, Int32)Simulates a recorded mouse hover with frame capture.RecordedMouseMovePath(Interactive, Point[], Int32)Simulates a recorded mouse move path with frame capture.RecordedMouseRightClick(Interactive, Point, Int32)Simulates a recorded mouse right-click with frame capture.RecordedMouseWheel(Interactive, Vector, Nullable<Point>, Int32)Simulates a recorded mouse wheel scroll with frame capture.RecordedPinchZoom(Interactive, Point, Double, Double, Int32)Simulates a recorded pinch zoom gesture with frame capture.RecordedRotation(Interactive, Point, Double, Double, Double, Int32)Simulates a recorded rotation gesture with frame capture.RecordedScroll(Interactive, Vector, Int32)Simulates a recorded scroll gesture with frame capture.RecordedSwipe(Interactive, Point, SwipeDirection, Double, Int32)Simulates a recorded swipe gesture with frame capture.RecordedTabNavigation(Interactive, Int32, Boolean, Int32)Simulates recorded Tab navigation with frame capture.RecordedTap(Interactive, Point, Int32)Simulates a recorded tap gesture.RecordedTouchpadMagnify(Interactive, Vector, Point, KeyModifiers)Simulates a recorded touchpad magnify gesture with frame capture.RecordedTwoFingerPan(Interactive, Point, Point, Double, Int32)Simulates a recorded two-finger pan gesture with frame capture.RecordedTypeText(Interactive, String, Int32)Simulates recorded text typing with frame capture.StartRecording(TopLevel, RecordingOptions?, String?)Starts recording for the specified target.StopRecording()Stops recording and returns statistics.StopRecordingAndConvertToVideo(VideoConversionOptions?)Stops recording and converts to video.