mirror of
https://github.com/lampaa/com.lampa.startapp.git
synced 2026-04-12 00:00:30 +08:00
upload new version
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
cordova.define("org.apache.cordova.startapp.startapp", function(require, exports, module) { /*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
@@ -22,12 +22,17 @@
|
||||
var exec = require('cordova/exec');
|
||||
var platform = require('cordova/platform');
|
||||
|
||||
|
||||
/** Open a native alert dialog, with a customizable title and button text.
|
||||
*
|
||||
* @param {String} message app name
|
||||
* @param {Function} completeCallback The callback that is called when open app
|
||||
*/
|
||||
module.exports = function(message, completeCallback) {
|
||||
exec(completeCallback, null, "startApp", "startapp", [message]);
|
||||
}
|
||||
module.exports = {
|
||||
check: function(message, completeCallback, errorCallback) {
|
||||
exec(completeCallback, errorCallback, "startApp", "check", [message]);
|
||||
},
|
||||
start: function(message, completeCallback, errorCallback) {
|
||||
exec(completeCallback, errorCallback, "startApp", "start", (typeof message === 'string') ? [message] : message);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user