call_state_handler 1.0.1
call_state_handler: ^1.0.1 copied to clipboard
A Flutter plugin that detects phone calls and video calls on both Android and iOS platforms. This plugin helps you monitor call states in your app, allowing you to take appropriate actions when calls [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add call_state_handler
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
call_state_handler: ^1.0.1
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:call_state_handler/call_state_handler.dart';