\doxysection{com.\+tritondigital.\+ads.\+Sync\+Banner\+View Class Reference}
\hypertarget{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView}{}\label{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView}\index{com.tritondigital.ads.SyncBannerView@{com.tritondigital.ads.SyncBannerView}}


High-\/end banner able to load an ad from a cue point.  


Inheritance diagram for com.\+tritondigital.\+ads.\+Sync\+Banner\+View\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.828283cm]{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView}
\end{center}
\end{figure}
\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_aededc557a19a0af6885cc4734e07e9fb}\label{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_aededc557a19a0af6885cc4734e07e9fb} 
{\bfseries Sync\+Banner\+View} (Context context)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_a5d253b039fe2cce1ec80c641844777b7}\label{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_a5d253b039fe2cce1ec80c641844777b7} 
{\bfseries Sync\+Banner\+View} (Context context, Attribute\+Set attrs)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_afca6407e32a85dae5f9ae75606a6e288}\label{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_afca6407e32a85dae5f9ae75606a6e288} 
{\bfseries Sync\+Banner\+View} (Context context, Attribute\+Set attrs, int def\+Style)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_ad4beaf61d1e34a04cd0e43ab81732e13}{release}} ()
\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_ada80f5163bbd2561c68552a66c890dac}{on\+Ad\+Loaded}} (\mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1AdLoader}{Ad\+Loader}} ad\+Loader, Bundle ad)
\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_a6d2d76428173b42f751c7e271ffdcc1d}{on\+Ad\+Loading\+Error}} (\mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1AdLoader}{Ad\+Loader}} ad\+Loader, int error\+Code)
\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_a390230d1415976f2fda6f21405aa88e5}{load\+Cue\+Point}} (Bundle cue\+Point)
\begin{DoxyCompactList}\small\item\em Loads a banner from a cue point. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions inherited from \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1BannerView}{com.\+tritondigital.\+ads.\+Banner\+View}}}
\begin{DoxyCompactItemize}
\item 
{\bfseries Banner\+View} (Context context)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
{\bfseries Banner\+View} (Context context, Attribute\+Set attrs)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
{\bfseries Banner\+View} (Context context, Attribute\+Set attrs, int def\+Style)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1BannerView_a2c03af06816dcec8bfc0ed8177914f0e}{on\+Pause}} ()
\begin{DoxyCompactList}\small\item\em Pauses any extra processing associated with this Banner\+View. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1BannerView_aae6cb7ecfb590621133337a5c4d5c5b3}{on\+Resume}} ()
\begin{DoxyCompactList}\small\item\em Resumes an Banner\+View after a previous call to pause(). \end{DoxyCompactList}\item 
void {\bfseries set\+Listener} (\mbox{\hyperlink{interfacecom_1_1tritondigital_1_1ads_1_1BannerView_1_1BannerListener}{Banner\+Listener}} listener)
\begin{DoxyCompactList}\small\item\em Sets the banner listener. \end{DoxyCompactList}\item 
\mbox{\hyperlink{interfacecom_1_1tritondigital_1_1ads_1_1BannerView_1_1BannerListener}{Banner\+Listener}} {\bfseries get\+Listener} ()
\begin{DoxyCompactList}\small\item\em Returns the banner listener. \end{DoxyCompactList}\item 
int {\bfseries get\+Banner\+Width} ()
\begin{DoxyCompactList}\small\item\em Returns the banner\textquotesingle{}s width in density-\/independent pixels. \end{DoxyCompactList}\item 
int {\bfseries get\+Banner\+Height} ()
\begin{DoxyCompactList}\small\item\em Returns the banner\textquotesingle{}s height in density-\/independent pixels. \end{DoxyCompactList}\item 
int {\bfseries get\+Banner\+Fallback\+Width} ()
\begin{DoxyCompactList}\small\item\em Returns the banner\textquotesingle{}s fallback width in density-\/independent pixels. \end{DoxyCompactList}\item 
int {\bfseries get\+Banner\+Fallback\+Height} ()
\begin{DoxyCompactList}\small\item\em Returns the banner\textquotesingle{}s fallback height in density-\/independent pixels. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1BannerView_aa1a7aef083eb78dfb6cdd1d005395173}{set\+Banner\+Size}} (int width, int height)
\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1BannerView_ac2ded034cc4ccce329b2282122d1bd87}{set\+Banner\+Size}} (int width, int height, int fallback\+Width, int fallback\+Height)
\begin{DoxyCompactList}\small\item\em Sets the ad size in density-\/independent pixels. \end{DoxyCompactList}\item 
Point \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1BannerView_aef994180f56eb96984359b3ad014a177}{get\+Best\+Banner\+Size}} (Bundle ad, int container\+Width, int container\+Height)
\begin{DoxyCompactList}\small\item\em Find the best banner size from an ad bundle which fits a layout container. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1BannerView_a306f72a49031e52d1ee841638886d042}{show\+Ad}} (Bundle ad)
\begin{DoxyCompactList}\small\item\em Show an ad. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1BannerView_ab3b75a7b901d8d1e40701250bbb910eb}{clear\+Banner}} ()
\begin{DoxyCompactList}\small\item\em Clears the current ad but keep the \href{https://developer.android.com/reference/android/view/View.html}{\texttt{ View}} in order to reuse it later. \end{DoxyCompactList}\item 
boolean {\bfseries is\+Banner\+Loaded} ()
\begin{DoxyCompactList}\small\item\em Returns true if the an ad is loaded. \end{DoxyCompactList}\item 
Bundle {\bfseries get\+Best\+Banner\+Size} (Array\+List$<$ Bundle $>$ banners, int width, int height)
\end{DoxyCompactItemize}
\doxysubsubsection*{Additional Inherited Members}
\doxysubsection*{Static Public Member Functions inherited from \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1BannerView}{com.\+tritondigital.\+ads.\+Banner\+View}}}
\begin{DoxyCompactItemize}
\item 
static String \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1BannerView_ac392583aa92dac8e3edaaa628aa0a220}{debug\+Error\+To\+Str}} (int error\+Code)
\begin{DoxyCompactList}\small\item\em Converts the error codes to a string. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Static Public Attributes inherited from \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1BannerView}{com.\+tritondigital.\+ads.\+Banner\+View}}}
\begin{DoxyCompactItemize}
\item 
static final int {\bfseries ERROR\+\_\+\+UNKNOWN} = Ad\+Loader.\+ERROR\+\_\+\+UNKNOWN
\item 
static final int {\bfseries ERROR\+\_\+\+NO\+\_\+\+INVENTORY} = Ad\+Loader.\+ERROR\+\_\+\+NO\+\_\+\+INVENTORY
\item 
static final int {\bfseries ERROR\+\_\+\+UNKNOWN\+\_\+\+HOST} = Ad\+Loader.\+ERROR\+\_\+\+UNKNOWN\+\_\+\+HOST
\item 
static final int {\bfseries ERROR\+\_\+\+NETWORK\+\_\+\+NOT\+\_\+\+AVAILABLE} = Ad\+Loader.\+ERROR\+\_\+\+NETWORK\+\_\+\+NOT\+\_\+\+AVAILABLE
\item 
static final int {\bfseries ERROR\+\_\+\+BANNER\+\_\+\+SIZE\+\_\+\+NOT\+\_\+\+SET} = 8012
\begin{DoxyCompactList}\small\item\em set\+Banner\+Size(int, int) must be called before loading an ad \end{DoxyCompactList}\item 
static final int {\bfseries ERROR\+\_\+\+LOAD\+\_\+\+AFTER\+\_\+\+RELEASE} = 8006
\begin{DoxyCompactList}\small\item\em Trying to load an ad after release() \end{DoxyCompactList}\item 
static final int {\bfseries ERROR\+\_\+\+NO\+\_\+\+BANNERS} = 8010
\begin{DoxyCompactList}\small\item\em The loaded ad doesn\textquotesingle{}t have any banner. \end{DoxyCompactList}\item 
static final int {\bfseries ERROR\+\_\+\+NO\+\_\+\+BANNER\+\_\+\+RIGHT\+\_\+\+SIZE} = 8011
\begin{DoxyCompactList}\small\item\em The loaded ad doesn\textquotesingle{}t have a banner of the right size. \end{DoxyCompactList}\item 
static final int {\bfseries ERROR\+\_\+\+TIMEOUT} = 8013
\begin{DoxyCompactList}\small\item\em The maximum time has been reached. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Protected Member Functions inherited from \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1BannerView}{com.\+tritondigital.\+ads.\+Banner\+View}}}
\begin{DoxyCompactItemize}
\item 
void {\bfseries on\+Error} (int error)
\end{DoxyCompactItemize}
\doxysubsection*{Protected Attributes inherited from \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1BannerView}{com.\+tritondigital.\+ads.\+Banner\+View}}}
\begin{DoxyCompactItemize}
\item 
final String {\bfseries TAG} = Log.\+make\+Tag("{}Banner\+View"{})
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
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 Ad\+Loader. 

\doxysubsection{Member Function Documentation}
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_a390230d1415976f2fda6f21405aa88e5}\label{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_a390230d1415976f2fda6f21405aa88e5} 
\index{com.tritondigital.ads.SyncBannerView@{com.tritondigital.ads.SyncBannerView}!loadCuePoint@{loadCuePoint}}
\index{loadCuePoint@{loadCuePoint}!com.tritondigital.ads.SyncBannerView@{com.tritondigital.ads.SyncBannerView}}
\doxysubsubsection{\texorpdfstring{loadCuePoint()}{loadCuePoint()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+ads.\+Sync\+Banner\+View.\+load\+Cue\+Point (\begin{DoxyParamCaption}\item[{Bundle}]{cue\+Point }\end{DoxyParamCaption})}



Loads a banner from a cue point. 

The banner will be cleared if the cue point doesn\textquotesingle{}t contain an ad. \Hypertarget{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_ada80f5163bbd2561c68552a66c890dac}\label{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_ada80f5163bbd2561c68552a66c890dac} 
\index{com.tritondigital.ads.SyncBannerView@{com.tritondigital.ads.SyncBannerView}!onAdLoaded@{onAdLoaded}}
\index{onAdLoaded@{onAdLoaded}!com.tritondigital.ads.SyncBannerView@{com.tritondigital.ads.SyncBannerView}}
\doxysubsubsection{\texorpdfstring{onAdLoaded()}{onAdLoaded()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+ads.\+Sync\+Banner\+View.\+on\+Ad\+Loaded (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1AdLoader}{Ad\+Loader}}}]{ad\+Loader,  }\item[{Bundle}]{ad }\end{DoxyParamCaption})}



Implements \mbox{\hyperlink{interfacecom_1_1tritondigital_1_1ads_1_1AdLoader_1_1AdLoaderListener_a39a9932ed8b800a7fdc48ef077f25a6e}{com.\+tritondigital.\+ads.\+Ad\+Loader.\+Ad\+Loader\+Listener}}.

\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_a6d2d76428173b42f751c7e271ffdcc1d}\label{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_a6d2d76428173b42f751c7e271ffdcc1d} 
\index{com.tritondigital.ads.SyncBannerView@{com.tritondigital.ads.SyncBannerView}!onAdLoadingError@{onAdLoadingError}}
\index{onAdLoadingError@{onAdLoadingError}!com.tritondigital.ads.SyncBannerView@{com.tritondigital.ads.SyncBannerView}}
\doxysubsubsection{\texorpdfstring{onAdLoadingError()}{onAdLoadingError()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+ads.\+Sync\+Banner\+View.\+on\+Ad\+Loading\+Error (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1AdLoader}{Ad\+Loader}}}]{ad\+Loader,  }\item[{int}]{error\+Code }\end{DoxyParamCaption})}



Implements \mbox{\hyperlink{interfacecom_1_1tritondigital_1_1ads_1_1AdLoader_1_1AdLoaderListener_a46b8440fedd6a87d34b48ccf4e6012dd}{com.\+tritondigital.\+ads.\+Ad\+Loader.\+Ad\+Loader\+Listener}}.

\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_ad4beaf61d1e34a04cd0e43ab81732e13}\label{classcom_1_1tritondigital_1_1ads_1_1SyncBannerView_ad4beaf61d1e34a04cd0e43ab81732e13} 
\index{com.tritondigital.ads.SyncBannerView@{com.tritondigital.ads.SyncBannerView}!release@{release}}
\index{release@{release}!com.tritondigital.ads.SyncBannerView@{com.tritondigital.ads.SyncBannerView}}
\doxysubsubsection{\texorpdfstring{release()}{release()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+ads.\+Sync\+Banner\+View.\+release (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Reimplemented from \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1BannerView_a34741ef104ca898c1a6cc771502e11a4}{com.\+tritondigital.\+ads.\+Banner\+View}}.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
sdk/src/main/java/com/tritondigital/ads/Sync\+Banner\+View.\+java\end{DoxyCompactItemize}
