Skip to content

amantoux/proximity_screen_lock

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published