-
public final class FrustrationInteractionsDetectorCore frustration interactions detector that handles rage click and dead click detection.
Important: Call
start()to enable proper dead click detection. Dead clicks require active subscription to UI change signals to function correctly. Ifstart()is not called, dead click events will not be tracked and a warning will be logged.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classFrustrationInteractionsDetector.Companionpublic final classFrustrationInteractionsDetector.ClickInfoInformation about a click event (platform-agnostic)
public final classFrustrationInteractionsDetector.TargetInfoInformation about the target element (platform-agnostic)
-
Constructor Summary
Constructors Constructor Description FrustrationInteractionsDetector(Amplitude amplitude, Logger logger, Float density, Function0<AutocaptureState> autocaptureStateProvider)
-
Method Summary
Modifier and Type Method Description final Unitstart()Starts the detector and begins subscribing to UI change signals. final Unitstop()final UnitprocessClick(FrustrationInteractionsDetector.ClickInfo clickInfo, FrustrationInteractionsDetector.TargetInfo targetInfo, ViewTarget target, String activityName)Processes a click event for both rage click and dead click detection. -
-
Constructor Detail
-
FrustrationInteractionsDetector
FrustrationInteractionsDetector(Amplitude amplitude, Logger logger, Float density, Function0<AutocaptureState> autocaptureStateProvider)
-
-
Method Detail
-
start
final Unit start()
Starts the detector and begins subscribing to UI change signals. This is required for proper dead click detection.
-
processClick
final Unit processClick(FrustrationInteractionsDetector.ClickInfo clickInfo, FrustrationInteractionsDetector.TargetInfo targetInfo, ViewTarget target, String activityName)
Processes a click event for both rage click and dead click detection.
-
-
-
-