]>
git.proxmox.com Git - sencha-touch.git/blob - src/src/device/Splashscreen.js
2 * Provides access to the native Splashscreen API
4 * - [PhoneGap](http://docs.phonegap.com/en/2.6.0/cordova_splashscreen_splashscreen.md.html#Splashscreen)
6 * Class currently only works with Cordova and does not have a simulated HTML counter part.
7 * Please see notes on Cordova Docs for proper Native project code changes that
8 * will need to be made to use this plugin.
10 * http://docs.phonegap.com/en/2.6.0/cordova_splashscreen_splashscreen.md.html#Splashscreen
12 * For more information regarding Native APIs, please review our [Native APIs guide](../../../packaging/native_apis.html).
14 Ext
.define('Ext.device.Splashscreen', {
18 'Ext.device.splashscreen.Cordova',
19 'Ext.device.splashscreen.Simulator'
22 constructor: function() {
23 var browserEnv
= Ext
.browser
.is
;
24 if (browserEnv
.WebView
) {
25 if (browserEnv
.Cordova
) {
26 return Ext
.create('Ext.device.splashscreen.Cordova');
30 return Ext
.create('Ext.device.splashscreen.Simulator');