Skip to content

Commit a3ec105

Browse files
narayananl23tjvantoll
authored andcommitted
watchLocation - code snippet update
I changed from updateTime to minimumUpdateTime on watchLocation - code snippet Closes NativeScript#553
1 parent 9d35875 commit a3ec105

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hardware/location.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function buttonStartTap() {
192192
function(e){
193193
console.log("Error: " + e.message);
194194
},
195-
{desiredAccuracy: 3, updateDistance: 10, updateTime: 1000 * 20}); // should update every 20 sec according to google documentation this is not so sure.
195+
{desiredAccuracy: 3, updateDistance: 10, minimumUpdateTime : 1000 * 20}); // should update every 20 sec according to google documentation this is not so sure.
196196
}
197197
exports.buttonStartTap = buttonStartTap;
198198

@@ -223,7 +223,7 @@ exports.buttonStopTap = buttonStopTap;
223223
function(e){
224224
console.log("Error: " + e.message);
225225
},
226-
{desiredAccuracy: 3, updateDistance: 10, updateTime: 1000 * 20}); // Should update every 20 seconds according to Googe documentation. Not verified.
226+
{desiredAccuracy: 3, updateDistance: 10, minimumUpdateTime : 1000 * 20}); // Should update every 20 seconds according to Googe documentation. Not verified.
227227
}
228228

229229
{% nativescript %}export function {% endnativescript %}public {% angular %}{% endangular %}buttonStopTap() {

0 commit comments

Comments
 (0)