BaseMediaSource.addEventListener(Handler, MediaSourceEventListener)
and check for AdsMediaSource.AdLoadException
s 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(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(RuntimeException error)
Deprecated.
Called when an unexpected internal error is encountered while loading ads.
|
void onAdLoadError(IOException error)
error
- The error.void onInternalAdLoadError(RuntimeException error)
error
- The error.void onAdClicked()
void onAdTapped()