Class ViewableTypeVisibilityTrackedView
-
- All Implemented Interfaces:
-
com.inmobi.media.ads.common.visibility.checker.VisibilityTrackedView
public final class ViewableTypeVisibilityTrackedView implements VisibilityTrackedView
A class that tracks the visibility of a view based on its view visibility and obstruction status.
This class implements the VisibilityTrackedView interface and determines whether a view is considered visible based on the provided ViewableTypeVisibilityConfig and the view's current state within the view hierarchy.
-
-
Constructor Summary
Constructors Constructor Description ViewableTypeVisibilityTrackedView(ViewableTypeVisibilityConfig visibilityConfig, SimpleViewHolder simpleViewHolder)
-
Method Summary
Modifier and Type Method Description VisibilityStatusisVisible()Checks if the view is visible based on the configured viewability criteria. -
-
Constructor Detail
-
ViewableTypeVisibilityTrackedView
ViewableTypeVisibilityTrackedView(ViewableTypeVisibilityConfig visibilityConfig, SimpleViewHolder simpleViewHolder)
-
-
Method Detail
-
isVisible
VisibilityStatus isVisible()
Checks if the view is visible based on the configured viewability criteria.
This method determines the visibility status of the view by checking if it is globally visible and not obstructed by other views. It uses the configuration provided in visibilityConfig to determine the minimum percentage and dimension requirements for visibility.
- Returns:
The VisibilityStatus of the view (either VisibilityStatus.VISIBLE or VisibilityStatus.HIDDEN).
-
-
-
-