Skip to content

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

License

Notifications You must be signed in to change notification settings

HarmonyCandies/sensors_plus_ohos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sensors_plus_ohos

pub package GitHub stars GitHub forks GitHub license GitHub issues harmony-candies

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

The OpenHarmony implementation of sensors_plus.

sensors_plus 在 OpenHarmony 平台的实现。

使用

dependencies:
  sensors_plus: 4.0.2
  sensors_plus_ohos: any

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

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published