public class VideoBannerView extends BannerView
SOMABanner
and sets the mediaType fixed
to MediaType.VIDEO
.mAutoReloadEnabled
handler, mAdDownloader, mAttachedToWindow, mBackgroundColor, mBannerStateMachine, mCurrentPackage, mDensity, mLoadingStateMachine, mNextPackage, mStateListenerReference
Constructor and Description |
---|
VideoBannerView(Context context)
Constructors for SOMABanner.
|
VideoBannerView(Context context,
AttributeSet attrs)
Constructors for SOMABanner.
|
VideoBannerView(Context context,
AttributeSet attrs,
int defaultStyle)
Constructors for SOMABanner.
|
Modifier and Type | Method and Description |
---|---|
void |
addAdListener(AdListenerInterface adListener)
Register an ad listener.
|
VideoListener |
getVideoListener()
return the video listener.
|
void |
onVideoFinished(VideoInterface video)
Called when video is finished.
|
void |
onVideoPrepared(VideoInterface video)
Called when video is prepared.
|
boolean |
removeAdListener(AdListenerInterface adListener)
Unregister an ad listener.
|
void |
setVideoListener(VideoListener listener)
Sets a video listener to receive video banner related calls.
|
destroy, getAutoReloadFrequency, getBannerAnimatorHandler, initBannerView, isAutoReloadEnabled, notifyOnPause, notifyOnResume, onAttachedToWindow, onDetachedFromWindow, onWindowFocusChanged, pauseAutoReload, setAutoReloadEnabled, setAutoReloadFrequency, setCustomMediationReference, setMediationReference
addAdListener, asyncLoadBeacon, asyncLoadNewBanner, closeInternalBrowser, getAdDownloader, getAdSettings, getBackgroundColor, getBannerState, getBannerStateListener, getCurrentPackage, getLoadingState, getNextPackage, getUserSettings, initBannerState, isBannerIdle, isLocationUpdateEnabled, isScalingEnabled, openInternalBrowser, removeAdListener, setAdDownloader, setAdSettings, setBackgroundColor, setBannerAnimatorHandler, setBannerStateListener, setCurrentPackage, setLoadingStateMachine, setLocationUpdateEnabled, setNextPackage, setScalingEnabled, setSOMAEndPoint, setUserSettings, switchViews
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBackgroundColor, isScalingEnabled, setBackgroundColor, setBannerStateListener, setScalingEnabled
asyncLoadNewBanner, getAdSettings, getUserSettings, isLocationUpdateEnabled, setAdSettings, setLocationUpdateEnabled, setUserSettings
public VideoBannerView(Context context)
public VideoBannerView(Context context, AttributeSet attrs)
public VideoBannerView(Context context, AttributeSet attrs, int defaultStyle)
public void setVideoListener(VideoListener listener)
listener
- public void onVideoPrepared(VideoInterface video)
video
- public void onVideoFinished(VideoInterface video)
video
- public VideoListener getVideoListener()
public void addAdListener(AdListenerInterface adListener)
adListener
- public boolean removeAdListener(AdListenerInterface adListener)
adListener
-