Follow

Advanced Usage - SplashConfig API

View original article on our GitHub.

The following describes the methods that you can use for customizing the Splash screen displayed in a StartApp In-App Splash screen Ad.

► Set the Splash screen mode

public SplashConfig setTheme(StartAppWrapper.SplashConfig.Theme theme)

Sets the Splash theme. Use one of the options below to select a design theme for your splash screen.

Parameters
SplashConfig.Theme.DEEP_BLUE (default)
SplashConfig.Theme.SKY
SplashConfig.Theme.ASHEN_SKY
SplashConfig.Theme.BLAZE
SplashConfig.Theme.GLOOMY
SplashConfig.Theme.OCEAN

► Set the application name

public SplashConfig setAppName(String appName)

Sets the application name to be used in the Template mode.

Parameters
String (default is the application name from the manifest).

► Set the logo

public SplashConfig setLogo(String logo)

Sets the logo to be displayed in the Template mode.

Parameters
logo the logo resource name under the Resources folder (default is the icon resource from the manifest).

NOTE: if you provide a custom logo, please follow these steps:
1. Click your logo image in the Resources folder
2. On the menu on the right, under 'Texture Type' choose 'Advanced'
3. Check 'Read/Write Enabled'
4. Under 'Format' choose "RGB 24 bit"
5. Click "Apply"

► Set the orientation

public SplashConfig setOrientation(StartAppWrapper.SplashConfig.Orientation orientation)

Sets the orientation to be used.

Parameters
StartAppWrapper.SplashConfig.Orientation.PORTRAIT (default)
StartAppWrapper.SplashConfig.Orientation.LANDSCAPE
StartAppWrapper.SplashConfig.Orientation.AUTO (use the device's orientation upon entering the application)

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

Comments