Developers » AS2 tagging » Android » Advanced features » Tracker listener
Tracker listener
Foreword
The instance of a tracker is accompanied by a listener enabling you to track the tagging of your application. It is therefore easier to detect a problem or execute custom processes.
Use
Once your tag is initialised, you must call the setListener method of the Tracker via a TrackerListener-type interface.
Make sure you import the ATInternet, Tracker and TrackerListener classes in your Activity or your Fragment.
TrackerListener Interface
Optional methods
Name | Return type | Parameter | Description |
---|---|---|---|
trackerNeedsFirstLaunchApproval | void | message | Event triggered when the tracker was first initialised |
buildDidEnd | void | status, message | Event triggered at the end of constructing a hit |
sendDidEnd | void | status, message | Event triggered at the end of sending a hit |
saveDidEnd | void | message | Event triggered at the end of saving a hit |
didCallPartner | void | response | Event triggered once the partner’s response was received |
warningDidOccur | void | message | Event triggered when a tagging problem occurred (does not block the hit from being sent) |
errorDidOccur | void | message | Event triggered when a tagging problem occurred (did not block the hit from being sent) |