proximity_screen_lock_ios 2.2.0 copy "proximity_screen_lock_ios: ^2.2.0" to clipboard
proximity_screen_lock_ios: ^2.2.0 copied to clipboard

PlatformiOS

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

Proximity Screen Lock for iOS #

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

To activate the behavior

if (ProximityLockScreen.isProximityLockSupported()) {
  ProximityLockScreen.setActive(true);
  ProximityScreenLock.proximityStates.listen((objectDetected) async {
    print(objectDetected ? 'Object detected' : 'No object detected');
  });
}

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

0
likes
160
points
6.64k
downloads

Publisher

verified publishermantoux.org

Weekly Downloads

A iOS Flutter 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_platform_interface

More

Packages that depend on proximity_screen_lock_ios