Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amantoux/proximity_screen_lock
A Flutter plugin that de-activates the screen when proximity sensor detects something
https://github.com/amantoux/proximity_screen_lock
flutter lockscreen proximity-sensor
Last synced: 22 days ago
JSON representation
A Flutter plugin that de-activates the screen when proximity sensor detects something
- Host: GitHub
- URL: https://github.com/amantoux/proximity_screen_lock
- Owner: amantoux
- License: bsd-3-clause
- Created: 2022-08-11T06:28:15.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-12T13:36:19.000Z (5 months ago)
- Last Synced: 2024-08-22T23:26:11.571Z (5 months ago)
- Topics: flutter, lockscreen, proximity-sensor
- Language: Dart
- Homepage: https://pub.dev/packages/proximity_screen_lock
- Size: 140 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Proximity Screen Lock
[![pub package](https://img.shields.io/pub/v/proximity_screen_lock.svg)](https://pub.dartlang.org/packages/proximity_screen_lock)
A Flutter plugin that can be used to bind screen activation to proximity sensor
# Usage
To activate the behavior
```dart
if (ProximityLockScreen.isProximityLockSupported()) {
ProximityLockScreen.setActive(true)
}
```# Availability
`ProximityLockScreen.isProximityLockAvailable()` will return `false` on Android devices that do not provide a proximity sensor.
It will also return `false` for non-mobile devices| | iOS | Android | Others |
|----------------------------|-------|---------|-------------|
| `isProximityLockAvailable` | `true` | `true` or `false` | `false` |