System.Sensors.TCustomLocationSensor.Distance
Delphi
property Distance: TLocationDistance read GetDistance write SetDistance;
C++
__property double Distance = {read=GetDistance, write=SetDistance};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.Sensors.pas System.Sensors.hpp |
System.Sensors | TCustomLocationSensor |
Description
Minimum distance that the location sensor requires to trigger a location data update.
A location sensor can monitor location changes and trigger OnLocationChanged whenever there is a location change. If you set LocationChange to TLocationChangeType.lctSmall indicating that significant location changes are not required to trigger the OnLocationChanged event, you may use Distance to specify the horizontal distance in meters from the current location to the last reported location that is enough to trigger OnLocationChanged.
For example, if Distance is 2.5
, after an occurrence of OnLocationChanged at one location, A, OnLocationChanged is not triggered again until the device running your application moves two and a half meters (or more) away from A.
Platform Support
This property is only supported on iOS and OS X.