Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vipera-npm-registry / de-splashscreen-plugin   js

Repository URL to install this package:

Version: 0.0.4 

/ www / de-splashScreen.js

/**
* DynamicEngine.plugins.SplashScreen
* @module de-splashscreen-plugin
*
* @class SplashScreen
*/
var exec = require('cordova/exec');

/**
* Hide the splash screen
*
* @method hideSplash
* @param {Function} success A success callback function called on success
* @param {Function} error The error callback function called on failure
*/
exports.hideSplash = function(success, error) {
    exec(success, error, "DESplashScreenPlugin", "hideSplash", []);
};

/**
* Show the splash screen
*
* @method showSplash
* @param {Function} success A success callback function called on success
* @param {Function} error The error callback function called on failure
*/
exports.showSplash = function(success, error) {
    exec(success, error, "DESplashScreenPlugin", "showSplash", []);
};

/**
* Hide & destroy th splash screen
* The splash screen will be closed and the memory will be freed. A succeeding showSplash invocation a new instance of the splash window eill be created.
*
* @method hideSplash
* @param {Function} success A success callback function called on success
* @param {Function} error The error callback function called on failure
*/
exports.destroySplash = function(success, error) {
    exec(success, error, "DESplashScreenPlugin", "destroySplash", []);
};