Package 

Interface ActionTrackingStrategy

  • 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 ViewTarget findTargetForTap(View view, Float x, Float y) Finds the target element at the given screen coordinates in response to a tap action.
      abstract ViewTarget findTargetForScroll(View view, Float x, Float y) Finds the target element at the given screen coordinates in response to a scroll action.
      • Methods inherited from class com.datadog.android.rum.tracking.ActionTrackingStrategy

        register, unregister
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.