From c2d22c0671bed942a470a2a033d9450106f0c0e5 Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Tue, 17 Dec 2013 20:49:39 -0500 Subject: [PATCH] CB-5658 Delete stale snapshot of plugin docs --- docs/config.md | 53 ----------------------- docs/splashscreen.hide.md | 80 ---------------------------------- docs/splashscreen.md | 90 --------------------------------------- docs/splashscreen.show.md | 69 ------------------------------ 4 files changed, 292 deletions(-) delete mode 100644 docs/config.md delete mode 100644 docs/splashscreen.hide.md delete mode 100644 docs/splashscreen.md delete mode 100644 docs/splashscreen.show.md diff --git a/docs/config.md b/docs/config.md deleted file mode 100644 index 7c95136..0000000 --- a/docs/config.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -license: Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---- - -# iOS Configuration - -The `config.xml` file controls an app's basic settings that apply -across each application and CordovaWebView instance. This section -details preferences that only apply to iOS builds. See The config.xml -File for information on global configuration options. - -- `FadeSplashScreen` (boolean, defaults to `true`): Set to `false` to - prevent the splash screen from fading in and out when its display - state changes. - - - -- `FadeSplashScreenDuration` (float, defaults to `2`): Specifies the - number of seconds for the splash screen fade effect to execute. - - - -- `ShowSplashScreenSpinner` (boolean, defaults to `true`): Set to `false` - to hide the splash-screen spinner. - - - -- `KeyboardDisplayRequiresUserAction` (boolean, defaults to `true`): - Set to `false` to allow the keyboard to appear when calling - `focus()` on form inputs. - - - -- `AutoHideSplashScreen` (boolean, defaults to `true`): - Set to `false` to control when the splashscreen is hidden through the plugin's JavaScript API. - - - diff --git a/docs/splashscreen.hide.md b/docs/splashscreen.hide.md deleted file mode 100644 index 2b07d73..0000000 --- a/docs/splashscreen.hide.md +++ /dev/null @@ -1,80 +0,0 @@ ---- -license: Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---- - -hide -=============== - -Dismiss the splash screen. - - navigator.splashscreen.hide(); - -Description ------------ - -navigator.splashscreen.hide() dismisses the applications splash screen. - -Supported Platforms -------------------- - -- Android -- iOS - -Quick Example -------------- - - navigator.splashscreen.hide(); - -Full Example ------------- - - - - - Splashscreen Example - - - - - -

Example

- - - -iOS Quirk ------------- - -1. In your **config.xml**, you need to [modify the value](guide_project-settings_index.md.html#Project%20Settings) for **"AutoHideSplashScreen”** to false - -2. Then, if you want to delay hiding the splash screen for 2 seconds, you can do this in your **deviceready** event handler: - - setTimeout(function() { - navigator.splashscreen.hide(); - }, 2000); diff --git a/docs/splashscreen.md b/docs/splashscreen.md deleted file mode 100644 index 20074bf..0000000 --- a/docs/splashscreen.md +++ /dev/null @@ -1,90 +0,0 @@ ---- -license: Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---- - -Splashscreen -========== - -> Enables developers to show/hide the application's splash screen. - - -Methods -------- - -- show -- hide - -Permissions ------------ - -### Android - -#### app/res/xml/config.xml - - - -### iOS - -#### config.xml - - - -Setup ------ - -### Android - -1. Copy your splash screen image into the res/drawable directories of your Android project. The sizes of each image should be: - - - xlarge (xhdpi): at least 960 x 720 - - large (hdpi): at least 640 x 480 - - medium (mdpi): at least 470 x 320 - - small (ldpi): at least 426 x 320 - - It is highly recommended that you use a [9-patch image](https://developer.android.com/tools/help/draw9patch.html) for your splash screen. - -2. In the onCreate method of the class that extends DroidGap add the following two lines: - - super.setIntegerProperty("splashscreen", R.drawable.splash); - super.loadUrl(Config.getStartUrl(), 10000); - - The first line 'super.setIntegerProperty' sets the image to be displayed as the splashscreen. If you have named your image anything other than splash.png you will have to modify this line. - The second line is the normal 'super.loadUrl' line but it has a second parameter which is the timeout value for the splash screen. In this example the splash screen will display for 10 seconds. If you want to dismiss the splash screen once you get the "deviceready" event you should call the navigator.splashscreen.hide() method. - -### iOS - -1. Copy your splash screen images into the **Resources/splash** directory of your iOS project. Only add the images for the devices you want to support (iPad screen size or iPhone screen size). The sizes of each image should be: - - - Default-568h@2x~iphone.png (640x1136 pixels) - - Default-Landscape@2x~ipad.png (2048x1496 pixels) - - Default-Landscape~ipad.png (1024x748 pixels) - - Default-Portrait@2x~ipad.png (1536x2008 pixels) - - Default-Portrait~ipad.png (768x1004 pixels) - - Default@2x~iphone.png (640x960 pixels) - - Default~iphone.png (320x480 pixels) - -### BlackBerry10 - -## Quirks - -The SplashScreen BlackBerry10 plugin implements hide(), but show() is not possible using the built in OS mechanism. The advantage to using this is the splash screen is displayed before WebKit boots and issupports multiple images for various device resolutions and orientations. -We also implemented the AutoHideSplashScreen config.xml value, similar to iOS. - - - - diff --git a/docs/splashscreen.show.md b/docs/splashscreen.show.md deleted file mode 100644 index 3e22736..0000000 --- a/docs/splashscreen.show.md +++ /dev/null @@ -1,69 +0,0 @@ ---- -license: Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---- - -show -=============== - -Displays the splash screen. - - navigator.splashscreen.show(); - -Description ------------ - -navigator.splashscreen.show() displays the applications splash screen. - -Supported Platforms -------------------- - -- Android -- iOS - -Quick Example -------------- - - navigator.splashscreen.show(); - -Full Example ------------- - - - - - Splashscreen Example - - - - - -

Example

- -