diff --git a/plugin.xml b/plugin.xml index 6b358e6..84a8f84 100644 --- a/plugin.xml +++ b/plugin.xml @@ -54,7 +54,7 @@ - + @@ -97,4 +97,10 @@ + + + + + + diff --git a/src/tizen/SplashScreenProxy.js b/src/tizen/SplashScreenProxy.js new file mode 100644 index 0000000..5222b6b --- /dev/null +++ b/src/tizen/SplashScreenProxy.js @@ -0,0 +1,22 @@ +( function() { + +win = null; + +module.exports = { + show: function() { + if ( win === null ) { + win = window.open('splashscreen.html'); + } + }, + + hide: function() { + if ( win !== null ) { + win.close(); + win = null; + } + } +}; + +require("cordova/tizen/commandProxy").add("SplashScreen", module.exports); + +})();