The splash screen API enables controlling whether the web application should display its splash screen when starting.
You can access the object by using the
launchbox.SplashScreen
reference.
On Android, the splash screen consists of a centered splashlogo.png
file and a blank area around the image. You may change the color of the area surrounding the
image by modifying the value of the splashScreenBackground
parameter.
To decide if the splash screen should be displayed while Hybrid Container is starting,
toggle the splashScreenEnabled
setting in the
app.properties
file. If set to NO, the splash screen is not shown when
the client is starting.
On iOS, to decide if the splash screen should be displayed while Hybrid Container is
starting, toggle the ios.keepSplashScreenAtStart
setting in the
app.properties
file. If set to NO, only the default splash screen is
shown, which disappears as soon as the app is started. If set to YES, the splash screen is
shown until the client finishes loading.
The SplashScreen API uses the following methods:
Methods | Description | Return type |
---|---|---|
show | Shows the splash screen. |
undefined |
hide | Hides the splash screen. |
undefined |