proximity_manager 1.0.4 copy "proximity_manager: ^1.0.4" to clipboard
proximity_manager: ^1.0.4 copied to clipboard

PlatformAndroid

A Flutter plugin to manage the proximity sensor, which allows to detect when an object is near to the device. This feature is use when the user is in a call and the device is near to the ear, the scre [...]

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add proximity_manager

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  proximity_manager: ^1.0.4

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:proximity_manager/proximity_manager.dart';
2
likes
135
points
977
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to manage the proximity sensor, which allows to detect when an object is near to the device. This feature is use when the user is in a call and the device is near to the ear, the screen turns off to prevent unwanted touches.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on proximity_manager

Packages that implement proximity_manager