---
title: Splashscreen
description: Control the splash screen for your app.
---
<!--
# 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.
-->
|Android 4.4|Android 5.1|Android 6.0|iOS 9.3|iOS 10.0|Windows 10 Store|Travis CI|
|:-:|:-:|:-:|:-:|:-:|:-:|:-:|
|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android-4.4,PLUGIN=cordova-plugin-splashscreen)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-4.4,PLUGIN=cordova-plugin-splashscreen/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android-5.1,PLUGIN=cordova-plugin-splashscreen)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-5.1,PLUGIN=cordova-plugin-splashscreen/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android-6.0,PLUGIN=cordova-plugin-splashscreen)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-6.0,PLUGIN=cordova-plugin-splashscreen/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios-9.3,PLUGIN=cordova-plugin-splashscreen)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios-9.3,PLUGIN=cordova-plugin-splashscreen/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios-10.0,PLUGIN=cordova-plugin-splashscreen)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios-10.0,PLUGIN=cordova-plugin-splashscreen/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-splashscreen)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-splashscreen/)|[![Build Status](https://travis-ci.org/apache/cordova-plugin-splashscreen.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-splashscreen)|
# cordova-plugin-splashscreen
This plugin is required to work with splash screens. This plugin displays and hides a splash screen during application launch.
Report issues with this plugin on the [Apache Cordova issue tracker][Apache Cordova issue tracker].
## Installation
// npm hosted (new) id
cordova plugin add cordova-plugin-splashscreen
// you may also install directly from this repo
cordova plugin add https://github.com/apache/cordova-plugin-splashscreen.git
## Supported Platforms
- Amazon Fire OS
- Android
- BlackBerry 10
- iOS
- Windows Phone 7 and 8
- Windows (`cordova-windows` version >= 4.4.0 is required)
- Browser
__Note__: Extended splashscreen does not require the plugin on Windows (as opposed to Android and iOS) in case you don't use the plugin API, i.e. programmatic hide/show.
### iOS-specific information
There are two mechanisms for displaying a launch screen on iOS:
1. Legacy launch images: images are sized exactly for the device's screen size. Does not support the iPad Pro 12.9's native resolution or split-screen/slide-over multitasking.
2. Launch storyboard images: Images are sized based on scale, idiom, and size classes. Supports all devices, and can be used with split-screen/slide-over multitasking.
Apple is moving away from legacy launch images. There is no official support for providing a native-resolution launch image for the iPad Pro 12.9 or for providing launch images that work with split-screen multitasking or slide-over. If your app doesn't need to support these contexts, then you can continue to use legacy launch images for as long as you like.
The preferred method of providing launch images is to use a launch storyboard. For native app developers, the ideal launch storyboard is an unpopulated version of the app's user interface at launch. For non-native app developers who don't wish to learn Interface Builder, however, this plugin simulates the legacy launch image method as much as is feasible.
#### Legacy launch images
If you choose to use legacy launch images, you will use the following syntax in `config.xml`:
```
<splash src="res/screen/ios/Default~iphone.png" width="320" height="480"/>
<splash src="res/screen/ios/Default@2x~iphone.png" width="640" height="960"/>
<splash src="res/screen/ios/Default-Portrait~ipad.png" width="768" height="1024"/>
<splash src="res/screen/ios/Default-Portrait@2x~ipad.png" width="1536" height="2048"/>
<splash src="res/screen/ios/Default-Landscape~ipad.png" width="1024" height="768"/>
<splash src="res/screen/ios/Default-Landscape@2x~ipad.png" width="2048" height="1536"/>
<splash src="res/screen/ios/Default-568h@2x~iphone.png" width="640" height="1136"/>
<splash src="res/screen/ios/Default-667h.png" width="750" height="1334"/>
<splash src="res/screen/ios/Default-736h.png" width="1242" height="2208"/>
```
Technically the filename for the `src` attribute can be anything you want; the filenames are used because they match what will be used when your project is compiled. The width and height attributes determine which launch images are displayed on which devices as follows:
| width | height | device (orientation) |
|:-----------:|:------------:|:-------------------------:|
| 320 | 480 | All non-retina iPhones and iPods |
| 640 | 960 | iPhone 4/4s/5/5s (portrait) |
| 750 | 1334 | iPhone 6/6s/7 (portrait) |
| 1242 | 2208 | iPhone 6+/6s+/7+ (portrait) |
| 2208 | 1242 | iPhone 6+/6s+/7+ (landscape) |
| 768 | 1024 | All non-retina iPads (portrait) |
| 1024 | 768 | All non-retina iPads (landscape) |
| 1536 | 2048 | All retina iPads (portrait) |
| 2048 | 1536 | All retina iPads (landscape) |
Note: It is vitally important that the source image actually matches the size specified in the `width` and `height` attributes. If it does not, the device may fail to render it properly, if at all.
#### Launch storyboard images
In order to support newer form factors and split-screen/slide-over multitasking, you should use launch storyboard images. These are similar to the legacy launch images above, but there are crucial differences:
- images are not specific to a given device.
- images are scaled to fill the available viewport (while maintaining the aspect ratio).
- the outer edges of the images will be cropped, and the amount will vary based on device an viewport.
- there is no need to provide an image for each possible device, viewport, and orientation; iOS will choose the best image for the situation automatically.
##### Designing launch storyboard images
The key to designing a launch storyboard image is understanding that the edges of the image will almost certainly be cropped. Therefore, one should not place any important information near the edges of any images provided to the launch storyboard. Only the center is a safe area, and this all but guarantees that following Apple's advice o
没有合适的资源?快使用搜索试试~ 我知道了~
ionic3蓝牙程序(typescript+html语言)
共1779个文件
js:689个
class:162个
md:109个
需积分: 10 11 下载量 26 浏览量
2019-03-04
17:24:46
上传
评论
收藏 23.06MB ZIP 举报
温馨提示
ionic3移动开发,完成了蓝牙串口助手的功能,由于需要方便上传,而且node_modules换了环境也不好用,所以需要自己装,安装我文章也有提供。
资源推荐
资源详情
资源评论
收起资源包目录
ionic3蓝牙程序(typescript+html语言) (1779个子文件)
1JYNBGqVjEfKsLj4lzDFwPsgWGs= 22B
1JYNBGqVjEfKsLj4lzDFwPsgWGs= 22B
android_sdk_version 1KB
resources-debug.ap_ 526KB
app-debug.apk 4.67MB
AUTHORS 332B
gradlew.bat 2KB
list-started-emulators.bat 1KB
list-emulator-images.bat 1KB
install-emulator.bat 1KB
android_sdk_version.bat 1KB
start-emulator.bat 1KB
install-device.bat 1KB
list-devices.bat 1KB
check_reqs.bat 1019B
version.bat 1015B
build.bat 1010B
clean.bat 1010B
log.bat 1006B
run.bat 1006B
getASPath.bat 137B
classAnalysis.bin 951KB
jarAnalysis.bin 519KB
fileSnapshots.bin 267KB
taskHistory.bin 74KB
taskHistory.bin 50KB
fileHashes.bin 41KB
taskArtifacts.bin 19KB
fileSnapshots.bin 19KB
taskJars.bin 18KB
fileHashes.bin 18KB
outputFileStates.bin 18KB
resourceHashesCache.bin 18KB
last-build.bin 1B
built.bin 0B
range.bnf 629B
iTunes-small.bplist 24KB
utf16.bplist 1KB
sample1.bplist 605B
sample2.bplist 384B
uid.bplist 365B
airplay.bplist 341B
int64.bplist 84B
build 2KB
CfSaqU5eS9V8_Ry8L6SRiMDf_dU= 526KB
changelog 496B
check_reqs 1KB
CordovaWebViewImpl.class 16KB
BluetoothSerial.class 13KB
BluetoothSerial.class 13KB
CordovaResourceApi.class 12KB
PluginManager.class 12KB
SystemWebViewEngine.class 12KB
CordovaActivity.class 12KB
SystemWebChromeClient.class 11KB
SystemWebViewClient.class 9KB
CoreAndroid.class 9KB
SplashScreen.class 8KB
SplashScreen.class 8KB
CordovaInterfaceImpl.class 8KB
NativeToJsMessageQueue.class 7KB
CordovaPlugin.class 7KB
BluetoothSerialService.class 6KB
BluetoothSerialService.class 6KB
PluginResult.class 6KB
CordovaBridge.class 5KB
CordovaWebViewImpl$EngineClient.class 5KB
ConfigXmlParser.class 5KB
NativeToJsMessageQueue$JsMessage.class 4KB
SplashScreen$5.class 4KB
SplashScreen$5.class 4KB
BluetoothSerialService$ConnectThread.class 4KB
BluetoothSerialService$ConnectThread.class 4KB
Device.class 4KB
Device.class 4KB
CordovaDialogsHelper.class 4KB
LOG.class 4KB
WhitelistPlugin.class 3KB
WhitelistPlugin.class 3KB
BluetoothSerialService$AcceptThread.class 3KB
BluetoothSerialService$AcceptThread.class 3KB
CallbackContext.class 3KB
CordovaPreferences.class 3KB
IonicKeyboard$3$1.class 3KB
IonicKeyboard$3$1.class 3KB
BluetoothSerialService$ConnectedThread.class 3KB
Whitelist$URLPattern.class 3KB
BluetoothSerial$1.class 3KB
BluetoothSerialService$ConnectedThread.class 3KB
BluetoothSerial$1.class 3KB
ResumeCallback.class 3KB
Whitelist.class 3KB
SplashScreen$6.class 3KB
WhitelistPlugin$CustomConfigXmlParser.class 3KB
SplashScreen$6.class 3KB
WhitelistPlugin$CustomConfigXmlParser.class 3KB
IonicKeyboard$3.class 3KB
IonicKeyboard$3.class 3KB
SystemWebView.class 3KB
NativeToJsMessageQueue$OnlineEventsBridgeMode.class 3KB
共 1779 条
- 1
- 2
- 3
- 4
- 5
- 6
- 18
资源评论
是阿晋啊
- 粉丝: 16
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功