BaseMediaSource.addEventListener(Handler, MediaSourceEventListener) and check for AdsMediaSource.AdLoadExceptions in MediaSourceEventListener#onLoadError(int, MediaPeriodId,
LoadEventInfo, MediaLoadData, IOException, boolean). Individual ads loader implementations
should expose ad interaction events, if applicable.@Deprecated
public static interface AdsMediaSource.EventListener
| Modifier and Type | Method and Description |
|---|---|
void |
onAdClicked()
Deprecated.
Called when the user clicks through an ad (for example, following a 'learn more' link).
|
void |
onAdLoadError(java.io.IOException error)
Deprecated.
Called if there was an error loading one or more ads.
|
void |
onAdTapped()
Deprecated.
Called when the user taps a non-clickthrough part of an ad.
|
void |
onInternalAdLoadError(java.lang.RuntimeException error)
Deprecated.
Called when an unexpected internal error is encountered while loading ads.
|
void onAdLoadError(java.io.IOException error)
error - The error.void onInternalAdLoadError(java.lang.RuntimeException error)
error - The error.void onAdClicked()
void onAdTapped()