import 'package:incoming_call_event/incoming_call_event.dart';
...
StreamSubscription streamSubscription;
@override
void dispose() {
super.dispose();
streamSubscription.cancel();
}
@override
void initState() {
super.initState();
streamSubscription = incomingCallEvent.listen((IncomingCallEvent event) {
print('Call is Incoming or Connected' + event.stateC);
//event.stateC has values "true" or "false"
});
}
...
forked from apurvh/PhoneCallState
-
Notifications
You must be signed in to change notification settings - Fork 0
Plugin for Flutter to Listen to Phone Call State and provide call back
License
syahrizalakbar/PhoneCallState
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Plugin for Flutter to Listen to Phone Call State and provide call back
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Dart 29.0%
- Java 24.6%
- Ruby 23.3%
- Objective-C 23.1%