Class NativeMRC50TrackedView

  • All Implemented Interfaces:
    com.inmobi.media.ads.common.visibility.checker.VisibilityTrackedView

    
    public final class NativeMRC50TrackedView
     implements VisibilityTrackedView
                        

    A VisibilityTrackedView implementation for tracking native ad viewability with a focus on MRC 50% criteria (specifically the view's spatial requirements).

    This class determines the visibility status of a native ad view based on global visibility, percentage of viewable area, minimum dimensions, obstruction by other views, and the attachment and visibility of required child views (like icon or media). The logic for isRequiredViewsAttached is tailored: if media is required, only media's validity is checked; otherwise, if the icon is required, only the icon's validity is checked. If neither is explicitly required, it defaults to true.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      VisibilityStatus isVisible() Determines the current visibility status of the tracked view.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait