amantoux / proximity_screen_lock

A Flutter plugin that de-activates the screen when proximity sensor detects something

Home Page:https://pub.dev/packages/proximity_screen_lock

Repository from Github https://github.comamantoux/proximity_screen_lockRepository from Github https://github.comamantoux/proximity_screen_lock

Proximity Screen Lock

pub package

A Flutter plugin that can be used to bind screen activation to proximity sensor

Usage

To activate the behavior

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

About

A Flutter plugin that de-activates the screen when proximity sensor detects something

https://pub.dev/packages/proximity_screen_lock

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dart 49.1%Language:Kotlin 21.4%Language:Ruby 13.3%Language:HTML 6.9%Language:Swift 6.2%Language:Objective-C 3.1%