public class

BannerAdContainer

extends LinearLayout
  android.widget.LinearLayout
  ↳co.adcel.adbanner.BannerAdContainer

Class Overview

Class for displaying banner

Summary

Nested Classes

interface BannerListener The interface for the handling banner lifecycle events

Public Methods

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

Public Methods

void setBannerListener(BannerListener bannerListener)

Sets the event listener for banner lifecycle

Parameters

bannerListener event listener for banner lifecycle

void loadNextAd()

Uploads the next banner

int getRefreshInterval()

Returns

banner refresh time in seconds

void setRefreshInterval(int refreshInterval)

Sets banner refresh time

Parameters

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