public class VisibilityResult
extends java.lang.Object
This class represents the banner's viewablity status based on the current position of the banner on the screen as well as current visibility state of that.
| Modifier and Type | Field and Description |
|---|---|
java.lang.Boolean |
insideScrollview |
boolean |
isParentAttached |
boolean |
isWebviewAttached |
com.digitalsunray.advantage.models.VisibilityResult.MaxDimensions |
maxDimensions |
float |
parentPercentage |
Position |
parentRelativePosition |
float |
percentage |
Position |
relativePosition |
java.lang.Boolean |
visible |
| Constructor and Description |
|---|
VisibilityResult(java.lang.Boolean isVisible,
java.lang.Boolean isInsideScrollview,
float percentage,
float parentPercentage,
Position position,
Position parentPosition,
int width,
int height,
java.lang.Boolean isParentAttached,
java.lang.Boolean isWebviewAttached)
Constructs a new instance with a given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
Exposure |
toExposure() |
public java.lang.Boolean visible
public java.lang.Boolean insideScrollview
public float percentage
public float parentPercentage
public Position relativePosition
public com.digitalsunray.advantage.models.VisibilityResult.MaxDimensions maxDimensions
public boolean isParentAttached
public boolean isWebviewAttached
public Position parentRelativePosition
public VisibilityResult(java.lang.Boolean isVisible,
java.lang.Boolean isInsideScrollview,
float percentage,
float parentPercentage,
Position position,
Position parentPosition,
int width,
int height,
java.lang.Boolean isParentAttached,
java.lang.Boolean isWebviewAttached)
isVisible - true If banner is viewable on the screen.
false Otherwise.isInsideScrollview - true If banner is inside of any scrollable view.
false Otherwise.percentage - The viewable area percentage.parentPercentage - The parent viewable area percentage.position - Position and size of the banner relative to the screen.parentPosition - Position and size of the banner's parent(Core).width - The screen's width.height - The screen's height.isParentAttached - true If parent (Core) has been attached to another super view.
false Otherwise.isWebviewAttached - true If active WebView is attached to its super view.
false Otherwise.public Exposure toExposure()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object