public class Tracker
extends java.lang.Object
VideoAd
or
Creative
. All possible event types described in Tracker.Events
Modifier and Type | Class and Description |
---|---|
static interface |
Tracker.ErrorListener |
static class |
Tracker.Events
Constants below describe possible VAST ad events and errors.
|
Constructor and Description |
---|
Tracker()
Deprecated.
Use
Tracker(Context) instead. |
Tracker(android.content.Context context)
Create a new
Tracker object. |
Modifier and Type | Method and Description |
---|---|
void |
setErrorListener(Tracker.ErrorListener errorListener) |
void |
trackAdEvent(VideoAd ad,
java.lang.String eventName)
Track ad event.
|
void |
trackCreativeEvent(Creative creative,
java.lang.String eventName)
Track creative event.
|
public Tracker()
Tracker(Context)
instead.Tracker
object.public Tracker(@NonNull android.content.Context context)
Tracker
object.context
- Interface to global information about an application environment.public void trackAdEvent(VideoAd ad, java.lang.String eventName)
ad
- VideoAd
object, that caused an eventeventName
- String event name. Possible values are described in Tracker.Events
public void trackCreativeEvent(Creative creative, java.lang.String eventName)
creative
- Creative
object, that caused an eventeventName
- String event name. Possible values are described in Tracker.Events
public void setErrorListener(Tracker.ErrorListener errorListener)