Follow

Showing the Splash Ad

View original article on our GitHub

A Splash Ad is a full-page ad that is displayed immediately after the application is launched. A Splash Ad first displays a full page splash screen that you define (as described below) followed by a full page ad.

StartApp SDK provides two modes for displaying Splash screens:

Splash Screen ModeDescription
User-Defined Mode (default) Using your application's default splash image, with a loading animation
Template Mode StartApp SDK provides a pre-defined template in which you can place your own creatives, such as application name, logo and loading animation. for more details, please refer to the "Advanced Manual"

Adding the Splash Screen

In your application delegate class (AppDelegate.cpp), after initializing the SDK, call theshowSplashAd method:

// AppDelegate.cpp

#include "StartAppPlugin.h"

bool AppDelegate::applicationDidFinishLaunching() 
{
    startappiOS* startAppBridge = startappiOS().sharedInstance();
    startAppBridge->showSplashAd();
    return true;
}

If you wish to customize or use a different splash screen, please refer to theAdvanced Usage.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments