\doxysection{com.\+tritondigital.\+ads.\+Interstitial Class Reference}
\hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial}{}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial}\index{com.tritondigital.ads.Interstitial@{com.tritondigital.ads.Interstitial}}


Displays a full-\/screen Triton ad.  


\doxysubsubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
interface \mbox{\hyperlink{interfacecom_1_1tritondigital_1_1ads_1_1Interstitial_1_1InterstitialListener}{Interstitial\+Listener}}
\begin{DoxyCompactList}\small\item\em A listener for receiving Interstitial notifications. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial_ab0606fd01c256af6f0b863353ecf5040}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_ab0606fd01c256af6f0b863353ecf5040} 
{\bfseries Interstitial} (Context context)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a868a85f57ee58f911ee93472b4be4ab8}{release}} ()
\begin{DoxyCompactList}\small\item\em Destroys the Interstitial. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a4da85d64dbc8bb31da259d995d58b3c9}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a4da85d64dbc8bb31da259d995d58b3c9} 
void {\bfseries set\+Listener} (\mbox{\hyperlink{interfacecom_1_1tritondigital_1_1ads_1_1Interstitial_1_1InterstitialListener}{Interstitial\+Listener}} listener)
\begin{DoxyCompactList}\small\item\em Sets the interstitial listener. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial_af731dbe50ef570b286e65402035c2e22}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_af731dbe50ef570b286e65402035c2e22} 
void {\bfseries set\+Enable\+Count\+Down\+Display} (boolean m\+Enable\+Count\+Down\+Display)
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a1ec82142d7c35d889ba1cc9def471c6c}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a1ec82142d7c35d889ba1cc9def471c6c} 
\mbox{\hyperlink{interfacecom_1_1tritondigital_1_1ads_1_1Interstitial_1_1InterstitialListener}{Interstitial\+Listener}} {\bfseries get\+Listener} ()
\begin{DoxyCompactList}\small\item\em Returns the interstitial listener. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a78fbfb3580dde07bc010266114fb165f}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a78fbfb3580dde07bc010266114fb165f} 
void {\bfseries show\+Ad} (\mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1AdRequestBuilder}{Ad\+Request\+Builder}} ad\+Request\+Builder, Map$<$ String, List$<$ Integer $>$ $>$ dmp\+Segments)
\begin{DoxyCompactList}\small\item\em Shows an ad from an ad request. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial_ac5facc9fa170f0da9cd4938f25964d2c}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_ac5facc9fa170f0da9cd4938f25964d2c} 
void {\bfseries show\+Ad} (\mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1AdRequestBuilder}{Ad\+Request\+Builder}} ad\+Request\+Builder)
\begin{DoxyCompactList}\small\item\em Shows an ad from an ad request. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial_aa24c26751a2716de782239d217f8dd4d}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_aa24c26751a2716de782239d217f8dd4d} 
void {\bfseries show\+Ad} (String ad\+Request)
\begin{DoxyCompactList}\small\item\em Shows an ad from an ad request. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial_ab69e35a99c189c69184c4f44cd5545a6}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_ab69e35a99c189c69184c4f44cd5545a6} 
void {\bfseries show\+Ad} (Bundle ad)
\begin{DoxyCompactList}\small\item\em Shows an ad. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static String \mbox{\hyperlink{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a461d74373b3457430583f1397a486a28}{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_1Interstitial_a4abd21fd7f2e6ba99b11c810b740192b}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a4abd21fd7f2e6ba99b11c810b740192b} 
static final int {\bfseries ERROR\+\_\+\+UNKNOWN} = Ad\+Loader.\+ERROR\+\_\+\+UNKNOWN
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a2299927929bf30ad4e819346201b5bf6}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a2299927929bf30ad4e819346201b5bf6} 
static final int {\bfseries ERROR\+\_\+\+NO\+\_\+\+INVENTORY} = Ad\+Loader.\+ERROR\+\_\+\+NO\+\_\+\+INVENTORY
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a96912eeff6aee88d38f12ac6e1f36a9d}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a96912eeff6aee88d38f12ac6e1f36a9d} 
static final int {\bfseries ERROR\+\_\+\+UNKNOWN\+\_\+\+HOST} = Ad\+Loader.\+ERROR\+\_\+\+UNKNOWN\+\_\+\+HOST
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a95c027e7b6a083a2edac4148ebb7fa3f}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a95c027e7b6a083a2edac4148ebb7fa3f} 
static final int {\bfseries ERROR\+\_\+\+NETWORK\+\_\+\+NOT\+\_\+\+AVAILABLE} = Ad\+Loader.\+ERROR\+\_\+\+NETWORK\+\_\+\+NOT\+\_\+\+AVAILABLE
\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial_ac8c7089ba9970472f3ca94bb835b8194}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_ac8c7089ba9970472f3ca94bb835b8194} 
static final int {\bfseries ERROR\+\_\+\+INVALID\+\_\+\+MEDIA\+\_\+\+URL} = 8005
\begin{DoxyCompactList}\small\item\em Invalid media URL. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a0fbdd0f37aa0180f20aad0a3bd8551fd}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a0fbdd0f37aa0180f20aad0a3bd8551fd} 
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_1Interstitial_a308dea971a3a917ba7fbae6b72afeb9b}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a308dea971a3a917ba7fbae6b72afeb9b} 
static final int {\bfseries ERROR\+\_\+\+LOADING\+\_\+\+IN\+\_\+\+PROGRESS} = 8007
\begin{DoxyCompactList}\small\item\em An ad loading is already in progress. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial_af236ca61948fa097da668b0e7feb5dbe}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_af236ca61948fa097da668b0e7feb5dbe} 
static final int {\bfseries ERROR\+\_\+\+MEDIA\+\_\+\+PLAYER\+\_\+\+ERROR} = 8008
\begin{DoxyCompactList}\small\item\em Error while try to play the audio or video ad. \end{DoxyCompactList}\item 
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a348d3a4eca6edc2abeb70975096e5324}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a348d3a4eca6edc2abeb70975096e5324} 
static final int {\bfseries ERROR\+\_\+\+UNSUPPORTED\+\_\+\+MIME\+\_\+\+TYPE} = 8009
\begin{DoxyCompactList}\small\item\em MIME type not starting with "{}audio"{} or "{}video"{}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Displays a full-\/screen Triton ad. 

Interstitials are full screen UI that can play audios and videos ads. Usually, an interstitial audio ad comes with a banner. It is recommended to preload intersitials so they can be shown quickly. when needed.

\begin{DoxyParagraph}{Android\+Manifest.xml}
Applications using interstitial ads must include the following code in their manifest. 
\begin{DoxyCode}{0}
\DoxyCodeLine{\ <\textcolor{keywordtype}{activity}}
\DoxyCodeLine{\textcolor{keyword}{android:name}=\textcolor{stringliteral}{"{}com.tritondigital.ads.InterstitialActivity"{}}}
\DoxyCodeLine{\textcolor{keyword}{android:configChanges}=\textcolor{stringliteral}{"{}keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"{}}\ />}

\end{DoxyCode}
 
\end{DoxyParagraph}
\begin{DoxyParagraph}{Skip}
We can\textquotesingle{}t force an Android activities to stay on top without being cancelable. Therefore, interstitials can be skipped at any time. 
\end{DoxyParagraph}
\begin{DoxyParagraph}{Tracking}
The ad tracking is done automatically when using interstitials. 
\end{DoxyParagraph}
\begin{DoxyParagraph}{Behaviour}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{3}{|X[-1]}|}
\hline
\cellcolor{\tableheadbgcolor}\textbf{ }&\cellcolor{\tableheadbgcolor}\textbf{ Audio with Banner }&\cellcolor{\tableheadbgcolor}\textbf{ Video  }\\\cline{1-3}
\endfirsthead
\hline
\endfoot
\hline
\cellcolor{\tableheadbgcolor}\textbf{ }&\cellcolor{\tableheadbgcolor}\textbf{ Audio with Banner }&\cellcolor{\tableheadbgcolor}\textbf{ Video  }\\\cline{1-3}
\endhead
\cellcolor{\tableheadbgcolor}\textbf{ Screen orientation }&Multi-\/\+Orientation &Locked to the video orientation  \\\cline{1-3}
\cellcolor{\tableheadbgcolor}\textbf{ Start from background }&Will be played when app comes back to foreground &Will be played when app comes back to foreground  \\\cline{1-3}
\cellcolor{\tableheadbgcolor}\textbf{ Move to background }&Continues playing &Is skipped  \\\cline{1-3}
\end{longtabu}

\end{DoxyParagraph}


\doxysubsection{Member Function Documentation}
\Hypertarget{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a461d74373b3457430583f1397a486a28}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a461d74373b3457430583f1397a486a28} 
\index{com.tritondigital.ads.Interstitial@{com.tritondigital.ads.Interstitial}!debugErrorToStr@{debugErrorToStr}}
\index{debugErrorToStr@{debugErrorToStr}!com.tritondigital.ads.Interstitial@{com.tritondigital.ads.Interstitial}}
\doxysubsubsection{\texorpdfstring{debugErrorToStr()}{debugErrorToStr()}}
{\footnotesize\ttfamily static String com.\+tritondigital.\+ads.\+Interstitial.\+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_1Interstitial_a868a85f57ee58f911ee93472b4be4ab8}\label{classcom_1_1tritondigital_1_1ads_1_1Interstitial_a868a85f57ee58f911ee93472b4be4ab8} 
\index{com.tritondigital.ads.Interstitial@{com.tritondigital.ads.Interstitial}!release@{release}}
\index{release@{release}!com.tritondigital.ads.Interstitial@{com.tritondigital.ads.Interstitial}}
\doxysubsubsection{\texorpdfstring{release()}{release()}}
{\footnotesize\ttfamily void com.\+tritondigital.\+ads.\+Interstitial.\+release (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Destroys the Interstitial. 

No other methods should be called this. 

You\textquotesingle{}ll get a "{}leaked broadcast receiver"{} message if you don\textquotesingle{}t call this method before leaving your application. 

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