|
Triton Mobile SDK for Android 3.5.1
This is a custom android player made by Triton Digital
|
Displays a full-screen Triton ad. More...
Classes | |
| interface | InterstitialListener |
| A listener for receiving Interstitial notifications. More... | |
Public Member Functions | |
| Interstitial (Context context) | |
| Constructor. | |
| void | release () |
| Destroys the Interstitial. | |
| void | setListener (InterstitialListener listener) |
| Sets the interstitial listener. | |
| void | setEnableCountDownDisplay (boolean mEnableCountDownDisplay) |
| InterstitialListener | getListener () |
| Returns the interstitial listener. | |
| void | showAd (AdRequestBuilder adRequestBuilder, Map< String, List< Integer > > dmpSegments) |
| Shows an ad from an ad request. | |
| void | showAd (AdRequestBuilder adRequestBuilder) |
| Shows an ad from an ad request. | |
| void | showAd (String adRequest) |
| Shows an ad from an ad request. | |
| void | showAd (Bundle ad) |
| Shows an ad. | |
Static Public Member Functions | |
| static String | debugErrorToStr (int errorCode) |
| Converts the error codes to a string. | |
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.
| Audio with Banner | Video | |
|---|---|---|
| Screen orientation | Multi-Orientation | Locked to the video orientation |
| Start from background | Will be played when app comes back to foreground | Will be played when app comes back to foreground |
| Move to background | Continues playing | Is skipped |
|
static |
Converts the error codes to a string.
| void com.tritondigital.ads.Interstitial.release | ( | ) |
Destroys the Interstitial.
No other methods should be called this.
You'll get a "leaked broadcast receiver" message if you don't call this method before leaving your application.