public class PubnativeVisibilityTracker
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
PubnativeVisibilityTracker.Listener |
| Constructor and Description |
|---|
PubnativeVisibilityTracker() |
| Modifier and Type | Method and Description |
|---|---|
void |
addView(android.view.View view,
double minVisibilityPercent)
Adds the view to the tracking view pool and starts tracking it
|
void |
clear()
Stops tracking of all views and removes all callbacks
|
void |
removeView(android.view.View view)
Removes the view for visibility tracking
|
void |
setListener(PubnativeVisibilityTracker.Listener listener)
Sets listener for callbacks
|
public void setListener(PubnativeVisibilityTracker.Listener listener)
listener - valid listenerpublic void addView(android.view.View view,
double minVisibilityPercent)
view - view that you want to start trackingminVisibilityPercent - min amount percent of the view shown to be considered visible
from 0 to 1public void removeView(android.view.View view)
view - view that you want to stop trackingpublic void clear()