Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07d2a8a

Browse files
committed
more of Brants changes. javascript files
1 parent 559b936 commit 07d2a8a

5 files changed

Lines changed: 20 additions & 4 deletions

File tree

javascripts/iphone/bonjour.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// --- BjV Additions for 360/iDev
2+
Bonjour = function() {
3+
}
4+
5+
Bonjour.prototype.port = 0;
6+
Bonjour.prototype.start = function(name) {
7+
document.location = "gap://Bonjour.start/null";
8+
}
9+
Bonjour.prototype.stop = function() {
10+
document.location = "gap://Bonjour.stop/null";
11+
}
12+
Bonjour.prototype.delegate = null;

javascripts/iphone/contact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ContactManager.prototype.get = function(successCallback, errorCallback, options) {
2-
document.location = "gap://getContacts/null";
2+
document.location = "gap://Contacts.get/null";
33
if (typeof successCallback == "function") {
44
for (var i = 0;i<_contacts.length;i++) {
55
var con = new Contact();

javascripts/iphone/geolocation.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Geolocation.prototype.getCurrentPosition = function(successCallback, errorCallba
77
}
88

99
Geolocation.prototype._getCurrentPosition = function() {
10-
document.location = "gap://getloc/null";
10+
document.location = "gap://Location.get/null";
1111

1212
if (geo.lng != 0) {
1313
window.clearTimeout(locationTimeout);
@@ -21,4 +21,8 @@ Geolocation.prototype._getCurrentPosition = function() {
2121
geoSuccessCallback(position);
2222
}
2323
}
24+
}
25+
26+
Geolocation.prototype.start = function() {
27+
document.location = "gap://Location.start/null";
2428
}

javascripts/iphone/media.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
Media.prototype.play = function() {
77
if (this.src != null) {
8-
document.location = "gap://playSound/" + this.src;
8+
document.location = "gap://Sound.play/" + this.src;
99
}
1010
}

javascripts/iphone/notification.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Notification.prototype.vibrate = function(mills) {
2-
document.location = "gap://vibrate/null";
2+
document.location = "gap://Vibrate.vibrate/null";
33
}
44

55
Notification.prototype.beep = function(count, volume) {

0 commit comments

Comments
 (0)