Skip to content

Plugin for Flutter to Listen to Phone Call State and provide call back

License

Notifications You must be signed in to change notification settings

syahrizalakbar/PhoneCallState

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phone_state_i

Listen to Phone Call State and provide call back

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"
    });
  }

...

About

Plugin for Flutter to Listen to Phone Call State and provide call back

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 29.0%
  • Java 24.6%
  • Ruby 23.3%
  • Objective-C 23.1%