System.Sensors.Components.TOnSensorChoosing
C++
typedef void __fastcall (__closure *TOnSensorChoosing)(System::TObject* Sender, const System::Sensors::TSensorArray Sensors, int &ChoseSensorIndex);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| typedef | public | 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:
Senderis the object whose event handler is called. For example, for the OnSensorChoosing event of a location sensor, theSenderparameter is the location sensor.Sensorsis a list of hardware sensors of the type ofSenderavailable on the device running your application. For example, for the OnSensorChoosing event of a location sensor, theSensorsparameter is a list of hardware sensors that can provide location information.ChoseSensorIndexis 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.