public class
extends LinearLayout
android.widget.LinearLayout
↳co.adcel.adbanner.BannerAdContainer
Class for displaying banner
interface | BannerListener | The interface for the handling banner lifecycle events |
void | setBannerListener(BannerListener bannerListener) | Sets the event listener for banner lifecycle |
void | loadNextAd() | Uploads the next banner |
int | getRefreshInterval() | Returns the banner refresh time |
void | setRefreshInterval(int refreshInterval) | Sets the banner refresh time |
void | pause() | Pauses banner rotation |
void | resume() | Resumes banner rotatio |
void | destroy() | Stops banner rotation |
void setBannerListener(BannerListener bannerListener)
Sets the event listener for banner lifecycle
bannerListener | event listener for banner lifecycle |
void loadNextAd()
Uploads the next banner
int getRefreshInterval()
banner refresh time in seconds
void setRefreshInterval(int refreshInterval)
Sets banner refresh time
refreshInterval | Time in seconds, after which the banner will be automatically updated. If you specify a value of 0, auto-refresh is disabled. The minimum value is 25, the maximum is 120. |
void pause()
Pauses banner rotation. This method is should be called in onPause method of your activity
void resume()
Resumes banner rotation. This method is should be called in onResume method of your activity
void destroy()
Stops banner rotation. This method is should be called in onDestroy method of your activity