changeset 0 | 54063d8b0412 |
-1:000000000000 | 0:54063d8b0412 |
---|---|
1 /** |
|
2 * This class provides access to the telephony features of the device. |
|
3 * @constructor |
|
4 */ |
|
5 function Telephony() { |
|
6 this.number = ""; |
|
7 } |
|
8 |
|
9 /** |
|
10 * Calls the specifed number. |
|
11 * @param {Integer} number The number to be called. |
|
12 */ |
|
13 Telephony.prototype.send = function(number) { |
|
14 widget.openURL('tel:+' + number); |
|
15 }; |
|
16 |
|
17 if (typeof navigator.telephony == "undefined") navigator.telephony = new Telephony(); |