【问题标题】:is it possible to get the analog value of proximity sensor flutter apps是否有可能获得接近传感器颤振应用程序的模拟值
【发布时间】:2021-01-24 03:35:09
【问题描述】:

我正在尝试使用接近传感器,想知道是否有办法获取模拟值。目前使用以下两个插件,似乎只能获得“yes”、“no”或“true”、“false”值。

到底有没有实际得到模拟值以便我可以计算距离?

https://pub.dev/packages/all_sensors https://github.com/Samaritan1011001/proximity_plugin

【问题讨论】:

    标签: ios android-studio flutter


    【解决方案1】:

    在 ios 中无法获取距离。你可以得到真或假。但在 android 中,这是可能的。这取决于您应该支持哪个平台。也许这会有所帮助。 https://pub.dev/packages/proximity_sensor

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-12
      • 2021-07-01
      • 2021-01-23
      • 2020-10-29
      • 2020-11-04
      • 2021-08-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多