Mon 21 Jul 22:43:21 CEST 2025
This commit is contained in:
parent
a19eb9e4ce
commit
3cd3dae3b3
|
@ -0,0 +1,22 @@
|
|||
|
||||
|
||||
var DialogGPS = function(message,description,callback,title,buttons){
|
||||
|
||||
var _title = (title || "Use Location?");
|
||||
var _message = (message || "This app wants to change your device settings:");
|
||||
var _description = (description || "Use GPS,Wi-Fi, and mobile networks for location.");
|
||||
var _buttons = (buttons || ["No","Yes"]);
|
||||
|
||||
if(Object.prototype.toString.call(_buttons) === "[object Array]") {
|
||||
|
||||
cordova.exec(callback,null,'DialogGPS','DISPLAY',[_title,_message,_description,_buttons]);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
DialogGPS.gpsActive = function(successCallback,failCallback){
|
||||
}
|
||||
|
||||
|
||||
|
||||
module.exports = DialogGPS;
|
Loading…
Reference in New Issue
Block a user