Class ViewabilityTrackedView

  • All Implemented Interfaces:

    
    public final class ViewabilityTrackedView
    
                        

    Data class representing the tracking state of a view being monitored for viewability.

    This class encapsulates the runtime state information for a view that is currently being tracked for viewability measurement. It maintains the coroutine job responsible for timing the viewability duration and tracks whether the viewability measurement has been completed successfully.

    The class is used internally by viewability tracking systems to manage the lifecycle of individual viewability measurements, ensuring proper resource cleanup and preventing duplicate measurements for the same view.

    • Constructor Detail

      • ViewabilityTrackedView

        ViewabilityTrackedView(Job visibleJob, Boolean isTrackingCompleted)
        Parameters:
        visibleJob - The Job responsible for timing the viewability duration (nullable when not active)
        isTrackingCompleted - Whether the viewability tracking has completed successfully