# 传感器函数

Source: [https://docs.qualcomm.com/doc/80-PK177-134Y/topic/sensor_functions.html](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/sensor_functions.html)

- **[传感器会话](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/sensor_session.html)**
- **[create_session](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/create_session.html)**  

创建会话并返回会话 ID，当前会话中的其他 QESDK 传感器 API 可使用该会话 ID。
- **[get_sensors_list](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/get_sensors_list.html)**  

返回可用传感器的列表，如果传感器不可用，则返回 NULL。客户端应用程序可以检查返回的列表中是否存在所需的传感器数据类型，并且后续可以使用该列表进行 SUID 查询。有关 SUID 请求，可参见[请求消息](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/requesting_message.html)。此 API 可以在创建传感器会话之前调用。仅支持活动识别
- **[delete_session](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/delete_session.html)**  

从传感器子系统中删除会话。调用此 API 时将终止所有传感器通信。

**Parent Topic:** [传感器 API](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/qesdk_sensor_apis.html)

Last Published: Jun 22, 2023

[Previous Topic
传感器 API](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134Y/topics/qesdk_sensor_apis.md) [Next Topic
传感器会话](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134Y/topics/sensor_session.md)