-
- All Implemented Interfaces:
-
com.datadog.android.rum.tracking.TrackingStrategy
public interface ActionTrackingStrategy implements TrackingStrategy
Strategy interface for tracking user interaction targets within a UI, such as taps and scrolls.
-
-
Method Summary
Modifier and Type Method Description abstract ViewTargetfindTargetForTap(View view, Float x, Float y)Finds the target element at the given screen coordinates in response to a tap action. abstract ViewTargetfindTargetForScroll(View view, Float x, Float y)Finds the target element at the given screen coordinates in response to a scroll action. -
-
Method Detail
-
findTargetForTap
abstract ViewTarget findTargetForTap(View view, Float x, Float y)
Finds the target element at the given screen coordinates in response to a tap action.
- Parameters:
view- The root View to start search from, top-down.x- The X coordinate of the tap, in screen coordinates.y- The Y coordinate of the tap, in screen coordinates.
-
findTargetForScroll
abstract ViewTarget findTargetForScroll(View view, Float x, Float y)
Finds the target element at the given screen coordinates in response to a scroll action.
- Parameters:
view- The root View to start search from, top-down.x- The X coordinate of the scroll event, in screen coordinates.y- The Y coordinate of the scroll event, in screen coordinates.
-
-
-
-