v0.1.0
motion_sensors
AndroidおよびiOSの加速度計、ジャイロスコープ、マグネトメーター、方位センサーにアクセスするためのFlutterプラグイン。
49いいね 73030日間ダウンロード150Pub ポイント
AndroidiOS
Android および iOS の加速度計、ジャイロスコープ、マグネトメーター センサーにアクセスするための Flutter プラグイン。
{"sdk":"flutter"}^2.1.0^1.0.2{"sdk":"flutter"}以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Flutter plugin for accessing the Android and iOS accelerometer, gyroscope, magnetometer and orientation sensors.
To use this plugin, add motion_sensors as a dependency in your pubspec.yaml
file.
dependencies:
motion_sensors: ^0.1.0
Import to your project.
import 'package:motion_sensors/motion_sensors.dart';
motionSensors.magnetometer.listen((MagnetometerEvent event) {
print(event);
});