public static interface AdsMediaSource.EventListener extends MediaSourceEventListener
MediaSourceEventListener.EventDispatcher| Modifier and Type | Method and Description |
|---|---|
void |
onAdClicked()
Called when the user clicks through an ad (for example, following a 'learn more' link).
|
void |
onAdLoadError(java.io.IOException error)
Called if there was an error loading one or more ads.
|
void |
onAdTapped()
Called when the user taps a non-clickthrough part of an ad.
|
void |
onInternalAdLoadError(java.lang.RuntimeException error)
Called when an unexpected internal error is encountered while loading ads.
|
onDownstreamFormatChanged, onLoadCanceled, onLoadCompleted, onLoadError, onLoadStarted, onUpstreamDiscardedvoid onAdLoadError(java.io.IOException error)
error - The error.void onInternalAdLoadError(java.lang.RuntimeException error)
error - The error.void onAdClicked()
void onAdTapped()