sensors_plus_ohos

pub package GitHub stars GitHub forks GitHub license GitHub issues HarmonyCandies QQ 群

Flutter plugin for accessing accelerometer, gyroscope, magnetometer, and barometer sensors On OpenHarmony.

The OpenHarmony implementation of sensors_plus.

sensors_plus 在 OpenHarmony 平台的实现。

使用

dependencies:
  sensors_plus: 6.1.1
  sensors_plus_ohos: 0.1.1

在你的项目的 module.json5 文件中增加以下权限设置。

    requestPermissions: [
      {"name" :  "ohos.permission.ACCELEROMETER"},
      {"name" :  "ohos.permission.GYROSCOPE"},
    ],

Libraries

sensors_plus_ohos