# get\_sensors\_list

Source: [https://docs.qualcomm.com/doc/80-PK177-134Y/topic/get_sensors_list.html](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 可以在创建传感器会话之前调用。仅支持活动识别

ArrayList<String> get_sensors_list() Copy to clipboard

## 返回结果

          - 传感器数据类型的字符串数组

              - 其值如下：
- 传感器数据类型的列表
- NULL - 没有可用传感器时列表为空
- Exception - QESDK 异常

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

Last Published: Jun 22, 2023

[Previous Topic
create\_session](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134Y/topics/create_session.md) [Next Topic
delete\_session](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134Y/topics/delete_session.md)