|
Triton Mobile SDK for Android
|
High-end banner able to load an ad from a cue point. More...
Public Member Functions | |
| SyncBannerView (Context context) | |
| Constructor. | |
| SyncBannerView (Context context, AttributeSet attrs) | |
| Constructor. | |
| SyncBannerView (Context context, AttributeSet attrs, int defStyle) | |
| Constructor. | |
| void | loadCuePoint (Bundle cuePoint) |
| Loads a banner from a cue point. More... | |
Public Member Functions inherited from com.tritondigital.ads.BannerView | |
| BannerView (Context context) | |
| Constructor. | |
| BannerView (Context context, AttributeSet attrs) | |
| Constructor. | |
| BannerView (Context context, AttributeSet attrs, int defStyle) | |
| Constructor. | |
| void | clearBanner () |
| Clears the current ad but keep the View in order to reuse it later. More... | |
| int | getBannerFallbackHeight () |
| Returns the banner's fallback height in density-independent pixels. | |
| int | getBannerFallbackWidth () |
| Returns the banner's fallback width in density-independent pixels. | |
| int | getBannerHeight () |
| Returns the banner's height in density-independent pixels. | |
| int | getBannerWidth () |
| Returns the banner's width in density-independent pixels. | |
| Point | getBestBannerSize (Bundle ad, int containerWidth, int containerHeight) |
| Find the best banner size from an ad bundle which fits a layout container. More... | |
| BannerListener | getListener () |
| Returns the banner listener. | |
| boolean | isBannerLoaded () |
| Returns true if the an ad is loaded. | |
| void | onPause () |
| Pauses any extra processing associated with this BannerView. More... | |
| void | onResume () |
| Resumes an BannerView after a previous call to pause(). More... | |
| void | release () |
| Destroys the internal state of this BannerView. More... | |
| void | setBannerSize (int width, int height) |
| void | setBannerSize (int width, int height, int fallbackWidth, int fallbackHeight) |
| Sets the ad size in density-independent pixels. More... | |
| void | setListener (BannerListener listener) |
| Sets the banner listener. | |
| void | showAd (Bundle ad) |
| Show an ad. More... | |
| void | onAdLoaded (AdLoader adLoader, Bundle ad) |
| Called after an ad has been loaded. | |
| void | onAdLoadingError (AdLoader adLoader, int errorCode) |
| Called after an error has occurred. | |
Additional Inherited Members | |
Static Public Member Functions inherited from com.tritondigital.ads.BannerView | |
| static String | debugErrorToStr (int errorCode) |
| Converts the error codes to a string. More... | |
Static Public Attributes inherited from com.tritondigital.ads.BannerView | |
| static final int | ERROR_BANNER_SIZE_NOT_SET = 8012 |
| setBannerSize(int, int) must be called before loading an ad | |
| static final int | ERROR_LOAD_AFTER_RELEASE = 8006 |
| Trying to load an ad after release() | |
| static final int | ERROR_NETWORK_NOT_AVAILABLE = AdLoader.ERROR_NETWORK_NOT_AVAILABLE |
| Network not available. | |
| static final int | ERROR_NO_BANNER_RIGHT_SIZE = 8011 |
| The loaded ad doesn't have a banner of the right size. | |
| static final int | ERROR_NO_BANNERS = 8010 |
| The loaded ad doesn't have any banner. | |
| static final int | ERROR_NO_INVENTORY = AdLoader.ERROR_NO_INVENTORY |
| No ad available. | |
| static final int | ERROR_TIMEOUT = 8013 |
| The maximum time has been reached. | |
| static final int | ERROR_UNKNOWN = AdLoader.ERROR_UNKNOWN |
| Unspecified error. | |
| static final int | ERROR_UNKNOWN_HOST = AdLoader.ERROR_UNKNOWN_HOST |
| Unknown host. | |
High-end banner able to load an ad from a cue point.
This class takes care of loading the ad and displaying the right banner. This class can return error codes defined in AdLoader.
| void com.tritondigital.ads.SyncBannerView.loadCuePoint | ( | Bundle | cuePoint | ) |
Loads a banner from a cue point.
The banner will be cleared if the cue point doesn't contain an ad.