Skip to content
Permalink
Browse files
CB-9749 documentation is wrong - default SplashScreenDelay
  • Loading branch information
purplecabbage committed Oct 5, 2015
1 parent 9bd0ec7 commit 9a69f12adaa307940ac424c46b413697376205a8
Showing 1 changed file with 4 additions and 4 deletions.
@@ -52,17 +52,17 @@ This plugin displays and hides a splash screen during application launch.

<preference name="AutoHideSplashScreen" value="true" />

- __SplashScreenDelay__ (number, default to 10000). Amount of time in milliseconds to wait before automatically hide splash screen.
- __SplashScreenDelay__ (number, default to 3000). Amount of time in milliseconds to wait before automatically hide splash screen.

<preference name="SplashScreenDelay" value="resourcename" />
<preference name="SplashScreenDelay" value="3000" />


### Android Quirks

In your `config.xml`, you need to add the following preferences:

<preference name="SplashScreen" value="foo" />
<preference name="SplashScreenDelay" value="10000" />
<preference name="SplashScreenDelay" value="3000" />
<preference name="SplashMaintainAspectRatio" value="true|false" />

Where foo is the name of the splashscreen file, preferably a 9 patch file. Make sure to add your splashcreen files to your res/xml directory under the appropriate folders. The second parameter represents how long the splashscreen will appear in milliseconds. It defaults to 3000 ms. See [Icons and Splash Screens](http://cordova.apache.org/docs/en/edge/config_ref_images.md.html)
@@ -78,7 +78,7 @@ You can use the following preferences in your `config.xml`:

<platform name="browser">
<preference name="SplashScreen" value="images/browser/splashscreen.jpg" /> <!-- defaults to "img/logo.png" -->
<preference name="SplashScreenDelay" value="10000" /> <!-- defaults to "3000" -->
<preference name="SplashScreenDelay" value="3000" /> <!-- defaults to "3000" -->
<preference name="SplashScreenBackgroundColor" value="green" /> <!-- defaults to "#464646" -->
<preference name="ShowSplashScreen" value="false" /> <!-- defaults to "true" -->
<preference name="SplashScreenWidth" value="600" /> <!-- defaults to "170" -->

0 comments on commit 9a69f12

Please sign in to comment.