Merge branch 'tizen' of http://github.com/siovene/cordova-plugin-splashscreen into dev
This commit is contained in:
commit
61a7a6d3df
@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
<header-file src="src/ios/CDVSplashScreen.h" />
|
<header-file src="src/ios/CDVSplashScreen.h" />
|
||||||
<source-file src="src/ios/CDVSplashScreen.m" />
|
<source-file src="src/ios/CDVSplashScreen.m" />
|
||||||
|
|
||||||
<framework src="CoreGraphics.framework" />
|
<framework src="CoreGraphics.framework" />
|
||||||
</platform>
|
</platform>
|
||||||
|
|
||||||
@ -97,4 +97,10 @@
|
|||||||
</js-module>
|
</js-module>
|
||||||
</platform>
|
</platform>
|
||||||
|
|
||||||
|
<!-- tizen -->
|
||||||
|
<platform name="tizen">
|
||||||
|
<js-module src="src/tizen/SplashScreenProxy.js" name="SplashScreenProxy">
|
||||||
|
<runs />
|
||||||
|
</js-module>
|
||||||
|
</platform>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
22
src/tizen/SplashScreenProxy.js
Normal file
22
src/tizen/SplashScreenProxy.js
Normal file
@ -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);
|
||||||
|
|
||||||
|
})();
|
Loading…
x
Reference in New Issue
Block a user