proximity_screen_lock 2.1.1 copy "proximity_screen_lock: ^2.1.1" to clipboard
proximity_screen_lock: ^2.1.1 copied to clipboard

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

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
8
likes
160
points
5k
downloads

Publisher

verified publishermantoux.org

Weekly Downloads

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

Homepage
Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, proximity_screen_lock_android, proximity_screen_lock_ios, proximity_screen_lock_platform_interface

More

Packages that depend on proximity_screen_lock