Class NativeImpressionTrackedView
-
- All Implemented Interfaces:
-
com.inmobi.media.ads.common.visibility.checker.VisibilityTrackedView
public final class NativeImpressionTrackedView implements VisibilityTrackedView
A VisibilityTrackedView implementation for tracking native ad impressions.
This class determines the visibility status of a native ad view based on various criteria, including 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).
-
-
Constructor Summary
Constructors Constructor Description NativeImpressionTrackedView(ViewableTypeVisibilityConfig viewableConfig, NativeViewabilityViewHolder nativeViewabilityViewHolder)
-
Method Summary
Modifier and Type Method Description VisibilityStatusisVisible()Determines the current visibility status of the native ad view. -
-
Constructor Detail
-
NativeImpressionTrackedView
NativeImpressionTrackedView(ViewableTypeVisibilityConfig viewableConfig, NativeViewabilityViewHolder nativeViewabilityViewHolder)
-
-
Method Detail
-
isVisible
VisibilityStatus isVisible()
Determines the current visibility status of the native ad view.
The view is considered visible if:
The parent ad view is globally visible on the screen.
The parent ad view meets the minimum percentage viewable and minimum dimension criteria.
The parent ad view is not significantly obstructed by non-friendly views.
All required child views (e.g., icon or media, if specified as required) are attached and meet their own visibility criteria.
- Returns:
VisibilityStatus.VISIBLE if all criteria are met, otherwise VisibilityStatus.HIDDEN.
-
-
-
-