-
public class FrustrationAnalyticsUtilsUtility functions for configuring frustration analytics behavior.
Exclude specific UI elements from frustration analytics detection (rage clicks and dead clicks).
Use ignore functionality for:
Navigation elements: Back buttons, close buttons, drawer toggles
Multi-click elements: Increment/decrement buttons, like/favorite buttons
Loading indicators: Progress bars, spinners, loading buttons
Decorative elements: Non-functional UI components
// Ignore all frustration analytics val backButton = findViewById<Button>(R.id.back_button) FrustrationAnalyticsUtils.ignoreFrustrationAnalytics(backButton) // Ignore only rage clicks (allow dead click detection) val incrementButton = findViewById<Button>(R.id.increment_button) FrustrationAnalyticsUtils.ignoreFrustrationAnalytics( incrementButton, rageClick = true, deadClick = false )// Ignore all frustration analytics Button( onClick = { finish() }, modifier = Modifier.ignoreFrustrationAnalytics() ) { Text("Back") } // Ignore only dead clicks Button( onClick = { submitForm() }, modifier = Modifier.ignoreFrustrationAnalytics( rageClick = false, deadClick = true ) ) { Text("Submit") }
-
-
Field Summary
Fields Modifier and Type Field Description public final static FrustrationAnalyticsUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final ViewignoreFrustrationAnalytics(View view, Boolean rageClick, Boolean deadClick)Marks an Android View to be ignored for frustration analytics. final BooleanisViewIgnored(View view)Checks if an Android View is marked to be ignored for frustration analytics. final BooleanisRageClickIgnored(View view)Checks if an Android View is marked to be ignored for rage click detection. final BooleanisDeadClickIgnored(View view)Checks if an Android View is marked to be ignored for dead click detection. final ViewunignoreView(View view)Removes the ignore marker from an Android View. -
-
Method Detail
-
ignoreFrustrationAnalytics
final View ignoreFrustrationAnalytics(View view, Boolean rageClick, Boolean deadClick)
Marks an Android View to be ignored for frustration analytics.
- Parameters:
view- The view to mark as ignoredrageClick- Whether to ignore rage click detection (default: true)deadClick- Whether to ignore dead click detection (default: true)
-
isViewIgnored
final Boolean isViewIgnored(View view)
Checks if an Android View is marked to be ignored for frustration analytics.
-
isRageClickIgnored
final Boolean isRageClickIgnored(View view)
Checks if an Android View is marked to be ignored for rage click detection.
-
isDeadClickIgnored
final Boolean isDeadClickIgnored(View view)
Checks if an Android View is marked to be ignored for dead click detection.
-
unignoreView
final View unignoreView(View view)
Removes the ignore marker from an Android View.
-
-
-
-