fluttertpc_light_sensor:基于 Flutter 的 Android 光线传感器插件项目

可用于在 Flutter Android 应用中获取设备光线传感器数据。该插件提供传感器可用性检查及光线强度(lux)实时更新订阅功能,基于原 light 插件重构并优化维护。【此简介由AI生成】

Branch3Tags3
FilesLast commitLast update
5 years ago
10 months ago
2 years ago
2 years ago
2 years ago
5 years ago
2 years ago
5 years ago
10 months ago
5 years ago
2 years ago
2 years ago
2 years ago
5 years ago
10 months ago

Light sensor

Coverage

A Flutter plugin for Android allowing access to the device light sensor.

Usage

To use this plugin, add light_sensor as a dependency in your pubspec.yaml file.

Example

// Import package
import 'package:light_sensor/light_sensor.dart';

// Check sensor availability
final bool hasSensor = await LightSensor.hasSensor();

// Subscribe on updates
LightSensor.luxStream().listen((lux) {...});

Origin

Originally, this plugin was based on light.
Functionality was extracted into this plugin due to lack of maintenance by the author of the light plugin.

Today, the light_sensor plugin has been completely refreshed.

Introduction

可用于在 Flutter Android 应用中获取设备光线传感器数据。该插件提供传感器可用性检查及光线强度(lux)实时更新订阅功能,基于原 light 插件重构并优化维护。【此简介由AI生成】

Customize your domain