proximity_screen_lock_default 1.0.0 copy "proximity_screen_lock_default: ^1.0.0" to clipboard
proximity_screen_lock_default: ^1.0.0 copied to clipboard

Platformweb

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

Default Proximity Screen Lock #

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

By default, this plugin assumes not proximity sensor is available

To activate the behavior

if (ProximityLockScreen.isProximityLockSupported()) {
  ProximityLockScreen.setActive(true)
}

ProximityLockScreen.isProximityLockAvailable() will return false on Android devices that do not provide a proximity sensor. It will also return false for non-mobile devices

0
likes
160
pub points
5%
popularity

Publisher

verified publishermantoux.org

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

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, flutter_web_plugins, proximity_screen_lock_platform_interface

More

Packages that depend on proximity_screen_lock_default