System.Sensors.Components.TOnSensorChoosing
Delphi
TOnSensorChoosing = procedure (Sender: TObject; const Sensors: TSensorArray; var ChoseSensorIndex: Integer) of object;
C++
typedef void __fastcall (__closure *TOnSensorChoosing)(System::TObject* Sender, const System::Sensors::TSensorArray Sensors, int &ChoseSensorIndex);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
type typedef |
public | System.Sensors.Components.pas System.Sensors.Components.hpp |
System.Sensors.Components | System.Sensors.Components |
Description
TOnSensorChoosing is used for events that provide a list of sensors and expect an index of a selected sensor.
The TOnSensorChoosing type is used to handle the OnSensorChoosing event.
This type receives the following parameters:
Sender
is the object whose event handler is called. For example, for the OnSensorChoosing event of a location sensor, theSender
parameter is the location sensor.Sensors
is a list of hardware sensors of the type ofSender
available on the device running your application. For example, for the OnSensorChoosing event of a location sensor, theSensors
parameter is a list of hardware sensors that can provide location information.ChoseSensorIndex
is the index of a sensor in the list of hardware sensors. Change this parameter to the index of the sensor that you want to use. The first sensor in the list of hardware sensors is used by default.