-Data provided by the compass sensor denotes the current orientation of the user device, which helps your application accurately navigate for the user.
-通过指南针传感器数据,感知用户设备当前的朝向,从而达到为用户指明方向的目的。
-Data provided by the proximity sensor denotes the distance between the device and a visible object, which enables the device to automatically turn on or off its screen accordingly to prevent accidental touch on the screen.
-通过接近光传感器数据,感知距离遮挡物的距离,使设备能够自动亮灭屏,达到防误触目的。
-Data provided by the barometer sensor helps your application accurately determine the altitude of the device.
-通过气压计传感器数据,准确的判断设备当前所处的海拔。
-Data provided by the ambient light sensor helps your device automatically adjust its backlight.
-通过环境光传感器数据,设备能够实现背光自动调节。
-Data provided by the Hall effect sensor implements the smart cover mode of your device.
-通过霍尔传感器数据,设备实现皮套功能等。
-Data provided by the heart rate sensor helps your application track the health of a user.
-通过心率传感器数据,感知用户当前的心率。
-Data provided by the pedometer sensor helps your application obtain the number steps a user has walked.
-通过计步传感器数据,可以统计用户的步数。
-Data provided by the wear detection sensor helps your application detect whether a user is wearing a wearable device.
-通过佩戴检测传感器,可以检测用户是否佩戴。
## Available APIs
## 接口说明
| Module| API| Description|
| 模块 | 接口名 | 描述 |
| -------- | -------- | -------- |
| ohos.sensor | sensor.on(sensorType, callback:AsyncCallback<Response>): void | Subscribes to data changes of a type of sensor.|
| ohos.sensor | sensor.once(sensorType, callback:AsyncCallback<Response>): void | Subscribes to only one data change of a type of sensor.|
| ohos.sensor | sensor.off(sensorType, callback:AsyncCallback<void>): void | Unsubscribes from sensor data changes.|