System.Sensors.TCustomLocationSensor.LocationChange
Delphi
property LocationChange: TLocationChangeType read FLocationChange write SetLocationChange;
C++
__property TLocationChangeType LocationChange = {read=FLocationChange, write=SetLocationChange, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.Sensors.pas System.Sensors.hpp |
System.Sensors | TCustomLocationSensor |
Description
Magnitude of a location change that makes the location sensor trigger location data updates.
- Note: You cannot change this value at run time. Any attempt raises an ESensorExceptionClass exception.
A location sensor can monitor location changes and trigger OnLocationChanged whenever there is a location change. You can use LocationChange to specify how significant the location change must be to trigger OnLocationChanged.
Valid values are:
- TLocationChangeType.lctLarge indicates that changes must be significant to trigger OnLocationChanged.
- TLocationChangeType.lctSmall indicates that OnLocationChanged must be triggered by any detected location change, even if it is a small, insignificant change.
If you choose TLocationChangeType.lctSmall, you may use the Distance property to specify how small a location change may be before it triggers the OnLocationChanged event.
Platform Support
This property is only supported on iOS and Windows.