public interface PlayListener
XappController
to listen to controller specific events.Modifier and Type | Method and Description |
---|---|
void |
onFinish(Advertisement ad,
AdResult result)
The ad has completed a full play through and is releasing.
|
void |
onPause(Advertisement ad)
An ad was paused.
|
void |
onStart(Advertisement ad)
An ad has started playing either from a stop or pause.
|
void |
onStop(Advertisement ad)
An ad has stopped either because it has finished or because it was stopped explicitly.
|
void onStart(Advertisement ad)
ad
- The ad that is currently playing.void onPause(Advertisement ad)
ad
- The ad that was playing.void onStop(Advertisement ad)
ad
- The ad that has stopped.void onFinish(Advertisement ad, AdResult result)
ad
- The ad that has finished.
This *can* be null if there was an error retrieving the ad. The accompanying AdResult will reflect this.result
- The results of the produced ad.