CxInteractionTracker class
Automatic user interaction tracker that hooks into Flutter's gesture system.
This tracker is only started when the user sets userActions: true in
CXExporterOptions. When the user sets userActions: false, CxFlutterPlugin.initSdk
never calls initialize, so no listener is attached and no detection runs —
there is no "off" branch inside this class because the tracker is simply not started.
When enabled, captures taps, scrolls, and swipes without requiring any wrapper widget.
Properties
- debug → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tapThreshold → double
-
Threshold in pixels - movement less than this is a tap, more is scroll/swipe
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isInitialized → bool
-
no setter
Static Methods
-
initialize(
{double tapThreshold = 20.0, bool debug = false}) → void - Initialize automatic interaction tracking. Called only when user set CXInstrumentationType.userActions to true in options. When user set it to false, CxFlutterPlugin.initSdk does not call this, so no detection runs.
-
shutdown(
) → void - Shutdown the automatic interaction tracker.