From Xojo Documentation

Revision as of 15:20, 20 December 2012 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Property (As Integer )
aWebDeviceLocation.MaximumAge = newIntegerValue
IntegerValue = aWebDeviceLocation.MaximumAge

New in 2011r2

Supported for all project types and targets.

Maximum age in milliseconds a geolocation can be before the device is asked for a new location. If your application could potentially request the location too often, you could set this property so the device returns a recent value instead of requesting a new one.


In the Shown event handler, specify that a new location be requested no more than every 30 seconds:

Me.MaximumAge = 30000