public interface PlayAdCallback
Vungle.playAd(String, AdConfig, PlayAdCallback)
and is triggered when the advertisement begins to play, when the advertisement ends, and when
any errors occur.Modifier and Type | Method and Description |
---|---|
void |
onAdEnd(java.lang.String id,
boolean completed,
boolean isCTAClicked)
Callback for an advertisement ending.
|
void |
onAdStart(java.lang.String id)
Callback for an advertisement starting.
|
void |
onError(java.lang.String id,
java.lang.Throwable error)
Callback for an error that has occurred while playing an advertisement.
|
void onAdStart(java.lang.String id)
id
- The Placement ID of the advertisement being played.void onAdEnd(java.lang.String id, boolean completed, boolean isCTAClicked)
id
- The Placement ID of the advertisement that ended.completed
- Flag that indicates whether or not the user watched the advertisement to completion.void onError(java.lang.String id, java.lang.Throwable error)
onAdStart(String)
and onAdEnd(String, boolean, boolean)
will
not be called. This indicates that the advertisement has finished.id
- The identifier for the advertisement placement for which the error occurred.error
- The error that prevented the advertisement from playing.