FMX.SensorInfo Sample

From RAD Studio Code Examples
Jump to: navigation, search

This is a sample that illustrates how to get device sensor info in mobile applications, using FireMonkey.

Location

You can find the FireMonkeyMobile SensorInfo sample project at:

  • Start | Programs | Embarcadero RAD Studio Sydney | Samples and navigate to:
    • Object Pascal\Multi-Device Samples\Device Sensors and Services\SensorInfo
    • CPP\Multi-Device Samples\Device Sensors and Services\SensorInfo
  • Subversion Repository:
    • You can find Delphi and C++ code samples in GitHub Repositories. Search by name into the samples repositories according to your RAD Studio version.

Description

This demo shows interaction with a mobile device sensor.

How to Use the Sample

  1. Navigate to the one of the locations given above, and open:
    • Delphi: SensorInfo.dproj
    • C++: SensorInfo.cbproj
  2. Press F9 or choose Run > Run.

Classes

FireMonkey SensorInfo represents the main window of the sample. It contains the following components:

Implementation

Uses

See Also

Samples