public class Exposure
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
float |
exposedPercentage |
Size |
viewport |
com.digitalsunray.advantage.models.Exposure.VisibleRectangle |
visibleRectangle |
| Constructor and Description |
|---|
Exposure()
Constructs a new instance with default values (zero).
|
Exposure(int exposedPercentage,
Size viewport,
com.digitalsunray.advantage.models.Exposure.VisibleRectangle visibleRectangle)
Constructs a new instance with the given relative positions.
|
public float exposedPercentage
public Size viewport
public com.digitalsunray.advantage.models.Exposure.VisibleRectangle visibleRectangle
public Exposure()
public Exposure(int exposedPercentage,
Size viewport,
com.digitalsunray.advantage.models.Exposure.VisibleRectangle visibleRectangle)
exposedPercentage - an array of rectangles describing the sections of the
visibleRectangle that are not visible, or null if occlusion
detection is not used or relevant. Each element of the
array is has the fields {x, y, width, height}, where x and y
are the position of the upper-left corner of the occluded area,
relative of the upper-left corner of the ad container's current extent,
and width and height are size of the occluded area. The
rectangles must not overlap, and they must be sorted from largest
area to smallest area. In common scenarios, the visible area is
rectangular, and this parameter is null. If the implementation can
detect non-rectangular exposures, then this parameter will be setviewport - container size of the current banner (creative)visibleRectangle - the visible portion of the ad container, or null
if not visible. It has the fields {x, y, width, height}, where x
and y are the position of the upper-left corner of the visible area,
relative of the upper-left corner of the ad container's current extent,
and width and height are size of the visible area. If the visible
© 2016 IAB Technology Laboratory 61 MRAID_v3.0
area is non-rectangular, then this parameter is the bounding box of
the visible portion, and the occlusionRectangles parameter
describes the non-visible areas within the bounding box