System.Sensors.TCustomLocationSensor.OnLocationChanged
Delphi
property OnLocationChanged: TLocationChangedEvent read FOnLocationChanged write FOnLocationChanged;
C++
__property TLocationChangedEvent OnLocationChanged = {read=FOnLocationChanged, write=FOnLocationChanged};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| event | public | System.Sensors.pas System.Sensors.hpp |
System.Sensors | TCustomLocationSensor |
Description
Occurs when the location of the device running your application changes.
This event provides the following arguments to its event handler:
Senderis the current instance of the location sensor.OldLocationis the location of the device prior to the location change.NewLocationis the current location of the device.
The LocationChange and Distance properties determine how significant location changes must be to trigger this event.