incoming_call_event 1.0.0

Flutter

Listen to Phone Call State and provide call back, forked from phone_state_i

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

...

0
likes
90
pub points
47%
popularity

Listen to Phone Call State and provide call back, forked from phone_state_i

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

syahrizalakbar1@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on incoming_call_event