Follow

Advanced Usage - Customizing the Splash Screen

View original article on our GitHub.

StartApp In-Ad provides a few pre-defined templates of splash screens in which you can place your own creatives, such as application name, logo and loading animation, as described below.

Customizing the Splash Screen

In the OnGUI() method of your script, call the following static function:

#if UNITY_ANDROID
StartAppWrapper.showSplash(splashConfig);
#endif

Apply the following parameters:

  • splashConfig: Optional object that can be used to customize some of your template's properties to suit your needs, such as your application name, logo and theme (see the example below). For a full description of the SplashConfig API, please refer toSplashConfig API.

Example: the following is an example of a custom template with an OCEAN theme, modified application name, logo and landscape orientation:

#if UNITY_ANDROID
StartAppWrapper.showSplash(new StartAppWrapper.SplashConfig()
                .setTheme(StartAppWrapper.SplashConfig.Theme.OCEAN)
                .setAppName("Your Application Name")
                .setLogo("Your logo")
                .setOrientation(StartAppWrapper.SplashConfig.Orientation.LANDSCAPE)             
);
#endif

NOTE: for optimal appearance of your Splash screen on all device densities, provide a logo of 360x360px and place it in the Resources folder of your project. If you do not provide a logo, then StartApp In-App uses the default application icon (as declared in the Manifest) and stretches it to 360x360px.

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

Comments