Sensor
Tizen provides interfaces and methods to manage sensor data from various sensors on the device. The main purpose of a sensor is to provide a value for the relevant environment parameter.
The Sensor API is optional for both Tizen mobile and wearable profiles, which means that it may not be supported in all mobile and wearable devices. The Sensor API is supported on all Tizen Emulators.
The main features of the Sensor API include:
- Managing sensors
You can enable the sensor, read sensor data, and disable the sensor.
- Receiving notifications
The supported sensor types and their capabilities are listed in the following table.
Sensor | Capability |
---|---|
Light sensor | http://tizen.org/feature/sensor.photometer |
Magnetic sensor | http://tizen.org/feature/sensor.magnetometer |
Pressure sensor | http://tizen.org/feature/sensor.barometer |
Proximity sensor | http://tizen.org/feature/sensor.proximity |
Ultraviolet sensor | http://tizen.org/feature/sensor.ultraviolet |
Heart rate monitor sensor | http://tizen.org/feature/sensor.heart_rate_monitor |