\doxysection{com.\+tritondigital.\+ads.\+Banner\+View Class Reference}
\hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView}{}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView}\index{com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}}


The View to display banner ads.  


Inheritance diagram for com.\+tritondigital.\+ads.\+Banner\+View\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classcom_1_1tritondigital_1_1ads_1_1BannerView}
\end{center}
\end{figure}
\doxysubsubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
interface \mbox{\hyperlink{interfacecom_1_1tritondigital_1_1ads_1_1BannerView_1_1BannerListener}{Banner\+Listener}}
\begin{DoxyCompactList}\small\item\em A listener for receiving Banner\+View notifications. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_adac3f54137f0a7d6d375e74ba328f82c}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_adac3f54137f0a7d6d375e74ba328f82c} 
{\bfseries Banner\+View} (Context context)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_afe487da6654481229ac150634173e4da}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_afe487da6654481229ac150634173e4da} 
{\bfseries Banner\+View} (Context context, Attribute\+Set attrs)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_a04d8aa7d2af07adef106366a99f8e72c}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_a04d8aa7d2af07adef106366a99f8e72c} 
{\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 \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1BannerView_a34741ef104ca898c1a6cc771502e11a4}{release}} ()
\begin{DoxyCompactList}\small\item\em Destroys the internal state of this Banner\+View. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_a522802a0e4b74cb1260d464489841999}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_a522802a0e4b74cb1260d464489841999} 
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 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_a4038dcf19525ebf95731f59396fcf22b}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_a4038dcf19525ebf95731f59396fcf22b} 
\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 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_a360555825d0af2600490170f29913d1b}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_a360555825d0af2600490170f29913d1b} 
int {\bfseries get\+Banner\+Width} ()
\begin{DoxyCompactList}\small\item\em Returns the banner\textquotesingle{}s width in density-\/independent pixels. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_aa570f47dc5cd6ed270ff32124d709f37}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_aa570f47dc5cd6ed270ff32124d709f37} 
int {\bfseries get\+Banner\+Height} ()
\begin{DoxyCompactList}\small\item\em Returns the banner\textquotesingle{}s height in density-\/independent pixels. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_a85b8333cb4927c37fdbe5acd48d5b19e}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_a85b8333cb4927c37fdbe5acd48d5b19e} 
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 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_a8073147b451ba0c57e8646d7f742ad1d}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_a8073147b451ba0c57e8646d7f742ad1d} 
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 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_acba6f1a9eb171fda2df88a2090765f02}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_acba6f1a9eb171fda2df88a2090765f02} 
boolean {\bfseries is\+Banner\+Loaded} ()
\begin{DoxyCompactList}\small\item\em Returns true if the an ad is loaded. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_afd316355b7334399d53ce96d6a2947d1}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_afd316355b7334399d53ce96d6a2947d1} 
Bundle {\bfseries get\+Best\+Banner\+Size} (Array\+List$<$ Bundle $>$ banners, int width, int height)
\end{DoxyCompactItemize}
\doxysubsubsection*{Static Public Member Functions}
\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}
\doxysubsubsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_acb714f68bae33daa4910197d5c188409}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_acb714f68bae33daa4910197d5c188409} 
static final int {\bfseries ERROR\+\_\+\+UNKNOWN} = Ad\+Loader.\+ERROR\+\_\+\+UNKNOWN
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_abe9b2f10a4eb4215be3bdc0c24dc6b13}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_abe9b2f10a4eb4215be3bdc0c24dc6b13} 
static final int {\bfseries ERROR\+\_\+\+NO\+\_\+\+INVENTORY} = Ad\+Loader.\+ERROR\+\_\+\+NO\+\_\+\+INVENTORY
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_a196c63127dcd9410de7fa27373b3062f}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_a196c63127dcd9410de7fa27373b3062f} 
static final int {\bfseries ERROR\+\_\+\+UNKNOWN\+\_\+\+HOST} = Ad\+Loader.\+ERROR\+\_\+\+UNKNOWN\+\_\+\+HOST
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_a03c083daeea183c106f0ce126918a4d3}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_a03c083daeea183c106f0ce126918a4d3} 
static final int {\bfseries ERROR\+\_\+\+NETWORK\+\_\+\+NOT\+\_\+\+AVAILABLE} = Ad\+Loader.\+ERROR\+\_\+\+NETWORK\+\_\+\+NOT\+\_\+\+AVAILABLE
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_a9f2ede8a2f03bf01d6f131084bbbd350}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_a9f2ede8a2f03bf01d6f131084bbbd350} 
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 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_a14b1c64f30a0e3d8e6ba91373dfe46c1}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_a14b1c64f30a0e3d8e6ba91373dfe46c1} 
static final int {\bfseries ERROR\+\_\+\+LOAD\+\_\+\+AFTER\+\_\+\+RELEASE} = 8006
\begin{DoxyCompactList}\small\item\em Trying to load an ad after release() \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_a05f65ab1d5b8b2ea8f7c12f870b57839}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_a05f65ab1d5b8b2ea8f7c12f870b57839} 
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 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_ac807744fffee9b75a83c0a37a91dd64e}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_ac807744fffee9b75a83c0a37a91dd64e} 
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 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_a526ef96504fed1cbfa7bfaa781dbb3b3}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_a526ef96504fed1cbfa7bfaa781dbb3b3} 
static final int {\bfseries ERROR\+\_\+\+TIMEOUT} = 8013
\begin{DoxyCompactList}\small\item\em The maximum time has been reached. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_ad2aa0db2a25b75b76eb875026e23b95d}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_ad2aa0db2a25b75b76eb875026e23b95d} 
void {\bfseries on\+Error} (int error)
\end{DoxyCompactItemize}
\doxysubsubsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_a1b78099ed9708ddea4eb4db61b573633}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_a1b78099ed9708ddea4eb4db61b573633} 
final String {\bfseries TAG} = Log.\+make\+Tag("{}Banner\+View"{})
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
The View to display banner ads. 

The size must be set prior to calling show\+Ad(\+Bundle).

\begin{DoxyParagraph}{Ad Size}
The ad size must be set prior to calling show\+Ad(\+Bundle). The ad size and the \href{https://developer.android.com/reference/android/view/View.html}{\texttt{ View}} size are not the same thing. For example, a 320x50 ad can be loaded in a \href{http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html\#WRAP_CONTENT}{\texttt{ WRAP\+\_\+\+CONTENT}} view.
\end{DoxyParagraph}
\begin{DoxyParagraph}{Fallback Size}
A fallback size can be set in case no ad is available for the main size. This feature was added in order to easily support 320x50 and 300x50 in the same view. 
\end{DoxyParagraph}


\doxysubsection{Member Function Documentation}
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_ab3b75a7b901d8d1e40701250bbb910eb}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_ab3b75a7b901d8d1e40701250bbb910eb} 
\index{com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}!clearBanner@{clearBanner}}
\index{clearBanner@{clearBanner}!com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}}
\doxysubsubsection{\texorpdfstring{clearBanner()}{clearBanner()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+ads.\+Banner\+View.\+clear\+Banner (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



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. 

This method is usually called at the end of an audio ad with a sync banner. \Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_ac392583aa92dac8e3edaaa628aa0a220}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_ac392583aa92dac8e3edaaa628aa0a220} 
\index{com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}!debugErrorToStr@{debugErrorToStr}}
\index{debugErrorToStr@{debugErrorToStr}!com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}}
\doxysubsubsection{\texorpdfstring{debugErrorToStr()}{debugErrorToStr()}}
{\footnotesize\ttfamily static String com.\+tritondigital.\+ads.\+Banner\+View.\+debug\+Error\+To\+Str (\begin{DoxyParamCaption}\item[{int}]{error\+Code }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Converts the error codes to a string. 

\begin{DoxyNote}{Note}
Only use for debugging purpose. 
\end{DoxyNote}
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_aef994180f56eb96984359b3ad014a177}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_aef994180f56eb96984359b3ad014a177} 
\index{com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}!getBestBannerSize@{getBestBannerSize}}
\index{getBestBannerSize@{getBestBannerSize}!com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}}
\doxysubsubsection{\texorpdfstring{getBestBannerSize()}{getBestBannerSize()}}
{\footnotesize\ttfamily Point com.\+tritondigital.\+ads.\+Banner\+View.\+get\+Best\+Banner\+Size (\begin{DoxyParamCaption}\item[{Bundle}]{ad,  }\item[{int}]{container\+Width,  }\item[{int}]{container\+Height }\end{DoxyParamCaption})}



Find the best banner size from an ad bundle which fits a layout container. 

It returns null if no size fits the container


\begin{DoxyParams}{Parameters}
{\em ad} & The Ad bundle with the banners to search for \\
\hline
{\em container\+Width} & The container width in dp \\
\hline
{\em container\+Height} & The container height in dp \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a Point with Width and Height or null if no size fits the container 
\end{DoxyReturn}
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_a2c03af06816dcec8bfc0ed8177914f0e}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_a2c03af06816dcec8bfc0ed8177914f0e} 
\index{com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}!onPause@{onPause}}
\index{onPause@{onPause}!com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}}
\doxysubsubsection{\texorpdfstring{onPause()}{onPause()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+ads.\+Banner\+View.\+on\+Pause (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Pauses any extra processing associated with this Banner\+View. 

This method should be called in the parent \href{http://developer.android.com/reference/android/app/Activity.html\#onPause()}{\texttt{ Activity.\+on\+Pause()}} method.

\begin{DoxySeeAlso}{See also}
\href{http://developer.android.com/reference/android/webkit/WebView.html\#onPause()}{\texttt{ http\+://developer.\+android.\+com/reference/android/webkit/\+Web\+View.\+html\#on\+Pause()}} 
\end{DoxySeeAlso}
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_aae6cb7ecfb590621133337a5c4d5c5b3}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_aae6cb7ecfb590621133337a5c4d5c5b3} 
\index{com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}!onResume@{onResume}}
\index{onResume@{onResume}!com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}}
\doxysubsubsection{\texorpdfstring{onResume()}{onResume()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+ads.\+Banner\+View.\+on\+Resume (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Resumes an Banner\+View after a previous call to pause(). 

This method should be called in the parent \href{http://developer.android.com/reference/android/app/Activity.html\#onResume()}{\texttt{ Activity.\+on\+Resume()}} method.

\begin{DoxySeeAlso}{See also}
\href{http://developer.android.com/reference/android/webkit/WebView.html\#onResume()}{\texttt{ http\+://developer.\+android.\+com/reference/android/webkit/\+Web\+View.\+html\#on\+Resume()}} 
\end{DoxySeeAlso}
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_a34741ef104ca898c1a6cc771502e11a4}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_a34741ef104ca898c1a6cc771502e11a4} 
\index{com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}!release@{release}}
\index{release@{release}!com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}}
\doxysubsubsection{\texorpdfstring{release()}{release()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+ads.\+Banner\+View.\+release (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Destroys the internal state of this Banner\+View. 

This method should be called after this Banner\+View has been removed from the view system. No other methods should be called this. \Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_aa1a7aef083eb78dfb6cdd1d005395173}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_aa1a7aef083eb78dfb6cdd1d005395173} 
\index{com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}!setBannerSize@{setBannerSize}}
\index{setBannerSize@{setBannerSize}!com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}}
\doxysubsubsection{\texorpdfstring{setBannerSize()}{setBannerSize()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily void com.\+tritondigital.\+ads.\+Banner\+View.\+set\+Banner\+Size (\begin{DoxyParamCaption}\item[{int}]{width,  }\item[{int}]{height }\end{DoxyParamCaption})}

\begin{DoxySeeAlso}{See also}
Banner\+View\+::set\+Banner\+Size(int, int, int, int) 
\end{DoxySeeAlso}
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_ac2ded034cc4ccce329b2282122d1bd87}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_ac2ded034cc4ccce329b2282122d1bd87} 
\index{com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}!setBannerSize@{setBannerSize}}
\index{setBannerSize@{setBannerSize}!com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}}
\doxysubsubsection{\texorpdfstring{setBannerSize()}{setBannerSize()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void com.\+tritondigital.\+ads.\+Banner\+View.\+set\+Banner\+Size (\begin{DoxyParamCaption}\item[{int}]{width,  }\item[{int}]{height,  }\item[{int}]{fallback\+Width,  }\item[{int}]{fallback\+Height }\end{DoxyParamCaption})}



Sets the ad size in density-\/independent pixels. 

The size change will be effective only on the next ad display. The fallback values will be used if no banner is found with the main size. \Hypertarget{classcom_1_1tritondigital_1_1ads_1_1BannerView_a306f72a49031e52d1ee841638886d042}\label{classcom_1_1tritondigital_1_1ads_1_1BannerView_a306f72a49031e52d1ee841638886d042} 
\index{com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}!showAd@{showAd}}
\index{showAd@{showAd}!com.tritondigital.ads.BannerView@{com.tritondigital.ads.BannerView}}
\doxysubsubsection{\texorpdfstring{showAd()}{showAd()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+ads.\+Banner\+View.\+show\+Ad (\begin{DoxyParamCaption}\item[{Bundle}]{ad }\end{DoxyParamCaption})}



Show an ad. 

This view takes care of taking the right banner from the ad bundle.


\begin{DoxyParams}{Parameters}
{\em ad} & The ad to load. \\
\hline
\end{DoxyParams}


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