BehaviorModule class

BehaviorModule is responsible for collecting and managing behavioral events

Constructors

BehaviorModule()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

events Future<List<KLPEventModel>>
Get all collected events (thread-safe)
no setter
isContinuousTracking bool
Get continuous tracking state
no setter
isTracking bool
Get tracking state
no setter
platformForTesting KalapaBehaviorScoreFlutterPlatform
Replaces the native bridge, so the upload outcomes (success / not-ready / failure) can be driven without a device.
no getter

Static Methods

addEvent(KLPEventModel event) Future<void>
Add an event to the collection (thread-safe) addEvent is async but using fire-and-forget do not blocking UI on Widget side
createClickEvent({required KLPPointWrapper position, required String target}) KLPEventModel
createKeyboardEvent({required String key, required String target, KLPPointWrapper? position}) KLPEventModel
createPointerEvent({required KLPPointWrapper startPosition, required KLPPointWrapper endPosition, required int distance, required int duration, required String target}) KLPEventModel
flushOnceForTesting() Future<void>
Runs one continuous-tracking tick immediately instead of waiting out the 8-second timer.
resetForTesting() Future<void>
Clears all tracking state between tests.
startTracking({bool continuousTracking = false, bool isMasked = true}) → void
Start behavioral tracking
stopTracking() → void
Stop behavioral tracking