public class PubnativeImpressionTracker
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
PubnativeImpressionTracker.Listener |
| Constructor and Description |
|---|
PubnativeImpressionTracker() |
| Modifier and Type | Method and Description |
|---|---|
void |
addView(android.view.View view)
Adds a view to the list of views to be tracked
|
void |
clear()
Clears all tracking views from this tracker
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isEmpty()
Tells if the current tracker is tracking something
|
void |
removeView(android.view.View view)
Stops tracking the view
|
void |
setListener(PubnativeImpressionTracker.Listener listener)
Sets listener for callbacks related to the impression of added views
|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic void setListener(PubnativeImpressionTracker.Listener listener)
listener - valid listener for callbackspublic void addView(android.view.View view)
view - view that you want ot start tracking, if the view is already being tracked this
will do nothing and will continue tracking the view as it was.public void removeView(android.view.View view)
view - view that you want to stop trackingpublic boolean isEmpty()
public void clear()