public class BannerView extends BaseView
Modifier and Type | Field and Description |
---|---|
protected boolean |
mAutoReloadEnabled
Holds whether the banner should be reloaded automatically (Publisher
settings).
|
handler, mAdDownloader, mAttachedToWindow, mBackgroundColor, mBannerStateMachine, mCurrentPackage, mDensity, mLoadingStateMachine, mNextPackage, mStateListenerReference
Constructor and Description |
---|
BannerView(Context context)
Constructs a new BannerView object.
|
BannerView(Context context,
AttributeSet attrs)
Constructs a new BannerView object from the xml.
|
BannerView(Context context,
AttributeSet attrs,
int defStyle)
Constructs a new BannerView object from the xml
with given default style.
|
Modifier and Type | Method and Description |
---|---|
void |
addAdListener(AdListenerInterface adListener)
Register an ad listener.
|
void |
destroy() |
int |
getAutoReloadFrequency()
retun auto reload frequency.
|
Handler |
getBannerAnimatorHandler()
Get the banner animator handler.
|
protected void |
initBannerView()
Initializes the BannerView object.
|
boolean |
isAutoReloadEnabled()
return true if auto reload is enabled, false otherwise.
|
void |
notifyOnPause()
Deprecated.
This Method was deprecated since version 3.1.8.
Pause is automatically handled from the SDK. |
void |
notifyOnResume()
Deprecated.
This Method was deprecated since version 3.1.8.
Resume is automatically handled from the SDK. |
protected void |
onAttachedToWindow() |
protected void |
onDetachedFromWindow() |
void |
onWindowFocusChanged(boolean hasWindowFocus) |
protected void |
pauseAutoReload()
Notify the banner that the activity was paused.
|
boolean |
removeAdListener(AdListenerInterface adListener)
Unregister an ad listener.
|
void |
setAutoReloadEnabled(boolean autoReloadEnabled)
Activate / deactivate auto reload.
|
void |
setAutoReloadFrequency(int autoReloadFrequency)
Set Auto Reload Frequency.
range = [10..240] |
void |
setCustomMediationReference(java.lang.ref.WeakReference<MediationEventBanner> customMediationReference)
Deprecated.
|
void |
setMediationReference(java.lang.ref.WeakReference<MediationEventBanner> mediationEventBannerReference)
Deprecated.
|
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
protected boolean mAutoReloadEnabled
public BannerView(Context context, AttributeSet attrs, int defStyle)
context
- The current contextattrs
- Attributes from the xmldefStyle
- The default style to usepublic BannerView(Context context, AttributeSet attrs)
context
- The current contextattrs
- Attributes from the xmlpublic BannerView(Context context)
context
- The current context@Deprecated public void setMediationReference(java.lang.ref.WeakReference<MediationEventBanner> mediationEventBannerReference)
@Deprecated public void setCustomMediationReference(java.lang.ref.WeakReference<MediationEventBanner> customMediationReference)
protected void initBannerView() throws BannerViewInstantiationException
BaseView
initBannerView
in class BaseView
BannerViewInstantiationException
BannerView(Context, AttributeSet, int),
BannerView(Context,AttributeSet),
BannerView(Context)
public boolean isAutoReloadEnabled()
protected void pauseAutoReload() throws UnableToPauseAutoReload
pauseAutoReload
in class BaseView
UnableToPauseAutoReload
BannerView}.
@Deprecated public void notifyOnPause()
@Deprecated public void notifyOnResume()
public void setAutoReloadEnabled(boolean autoReloadEnabled)
autoReloadEnabled
- true to enable auto reload, false otherwise.public final int getAutoReloadFrequency()
public final void setAutoReloadFrequency(int autoReloadFrequency)
autoReloadFrequency
- Frequency in seconds.public final void onWindowFocusChanged(boolean hasWindowFocus)
protected void onAttachedToWindow()
onAttachedToWindow
in class BaseView
protected final void onDetachedFromWindow()
onDetachedFromWindow
in class BaseView
public Handler getBannerAnimatorHandler()
BaseView
getBannerAnimatorHandler
in class BaseView
Handler
.public void destroy()
public void addAdListener(AdListenerInterface adListener)
adListener
- public boolean removeAdListener(AdListenerInterface adListener)
adListener
-