System.Sensors.TCustomLocationSensor.OnLocationChanged

From RAD Studio API Documentation
Jump to: navigation, search

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:

  • Sender is the current instance of the location sensor.
  • OldLocation is the location of the device prior to the location change.
  • NewLocation is the current location of the device.

The LocationChange and Distance properties determine how significant location changes must be to trigger this event.

See Also