public class ToasterBanner extends RelativeLayout implements BaseViewInterface
Constructor and Description |
---|
ToasterBanner(Context context,
View mParentView)
Creates an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
addAdListener(AdListenerInterface adListener)
Register your ad listener.
|
void |
appear()
Translate the banner inside the screen.
|
void |
asyncLoadNewBanner()
Request a new banner.
|
void |
disappear()
This method is to Animate and hide the banner out of screen.
|
void |
disappearAndDestroy()
This method replaces disappear method with memory consideration.
|
AdSettings |
getAdSettings()
Returns the current
AdSettings . |
int |
getBackgroundColor()
Returns the current background color code.
|
UserSettings |
getUserSettings()
Returns the current
UserSettings . |
boolean |
isLocationUpdateEnabled()
Returns
true is the location update is enabled,
false otherwise. |
boolean |
isScalingEnabled()
(non-Javadoc).
|
boolean |
removeAdListener(AdListenerInterface adListener)
Unregister your ad listener.
|
void |
setAdSettings(AdSettings adSettings)
Set the current
AdSettings . |
void |
setBannerStateListener(BannerStateListener listener)
Register your banner state listener.
|
void |
setLocationUpdateEnabled(boolean updateEnabled)
Activate / Deactivate the location update.
|
void |
setScalingEnabled(boolean scalingEnabled)
(non-Javadoc).
|
void |
setUserSettings(UserSettings userSettings)
Set the current
AdSettings . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setBackgroundColor
public ToasterBanner(Context context, View mParentView)
public void addAdListener(AdListenerInterface adListener)
public boolean removeAdListener(AdListenerInterface adListener)
public void setLocationUpdateEnabled(boolean updateEnabled)
public boolean isLocationUpdateEnabled()
true
is the location update is enabled,
false
otherwise.public UserSettings getUserSettings()
UserSettings
.public void setUserSettings(UserSettings userSettings)
AdSettings
.userSettings
- UserSettings
public int getBackgroundColor()
getBackgroundColor
in interface BaseViewInterface
integer
public void setBannerStateListener(BannerStateListener listener)
setBannerStateListener
in interface BaseViewInterface
BannerStateListener}.
public AdSettings getAdSettings()
AdSettings
.public void setAdSettings(AdSettings adSettings)
AdSettings
.adSettings
- AdSettings
public void disappearAndDestroy()
public void asyncLoadNewBanner()
public void appear()
TranslateInScreenAnimationException
public void disappear()
TranslationOffScreenAnimationException
public final boolean isScalingEnabled()
isScalingEnabled
in interface BaseViewInterface
com.smaato.soma.BaseViewInterface#isScaleEnabled()
public final void setScalingEnabled(boolean scalingEnabled)
setScalingEnabled
in interface BaseViewInterface
com.smaato.soma.BaseViewInterface#setScaleEnabled(boolean)