Package com.naver.ads.visibility
Class DefaultViewObserverEntry
-
- All Implemented Interfaces:
-
com.naver.ads.visibility.ViewObserverEntry
public final class DefaultViewObserverEntry implements ViewObserverEntry
The class that describes the intersection between the target view and its root view and whether target view is attached.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisIntersectingprivate final RectintersectingRectprivate final DoubleintersectingRatioprivate final IntegerintersectingPxprivate final Booleanattachedprivate final BooleanisFullyIntersectingCenterHorizontalprivate final BooleanisFullyIntersectingCenterVerticalprivate final BooleaninBackground
-
Constructor Summary
Constructors Constructor Description DefaultViewObserverEntry(Rect intersectingRect, Double intersectingRatio, Integer intersectingPx, Boolean attached, Boolean isFullyIntersectingCenterHorizontal, Boolean isFullyIntersectingCenterVertical, Boolean inBackground)Constructs a new DefaultViewObserverEntry instance.
-
Method Summary
Modifier and Type Method Description final BooleanisIntersecting()final RectgetIntersectingRect()the rect of the intersecting area. final DoublegetIntersectingRatio()the ratio of the intersecting area. final IntegergetIntersectingPx()the pixels of the intersecting area. final BooleangetAttached()the ture if target view is attached, false otherwise. final BooleanisFullyIntersectingCenterHorizontal()whether width of target view intersects the center horizontal. final BooleanisFullyIntersectingCenterVertical()whether height of target view intersects the center vertical. final BooleangetInBackground()the true if application is in background, false otherwise. -
-
Constructor Detail
-
DefaultViewObserverEntry
DefaultViewObserverEntry(Rect intersectingRect, Double intersectingRatio, Integer intersectingPx, Boolean attached, Boolean isFullyIntersectingCenterHorizontal, Boolean isFullyIntersectingCenterVertical, Boolean inBackground)
Constructs a new DefaultViewObserverEntry instance.
-
-
Method Detail
-
isIntersecting
final Boolean isIntersecting()
-
getIntersectingRect
final Rect getIntersectingRect()
the rect of the intersecting area.
-
getIntersectingRatio
final Double getIntersectingRatio()
the ratio of the intersecting area.
-
getIntersectingPx
final Integer getIntersectingPx()
the pixels of the intersecting area.
-
getAttached
final Boolean getAttached()
the ture if target view is attached, false otherwise.
-
isFullyIntersectingCenterHorizontal
final Boolean isFullyIntersectingCenterHorizontal()
whether width of target view intersects the center horizontal.
-
isFullyIntersectingCenterVertical
final Boolean isFullyIntersectingCenterVertical()
whether height of target view intersects the center vertical.
-
getInBackground
final Boolean getInBackground()
the true if application is in background, false otherwise.
-
-
-
-