flutter_twilio_voice 0.0.6 copy "flutter_twilio_voice: ^0.0.6" to clipboard
flutter_twilio_voice: ^0.0.6 copied to clipboard

discontinuedreplaced by: twilio_voice
PlatformiOS

Provides an interface to Twilio's Programmable Voice SDK to allow adding voice-over-IP (VoIP) calling into your Flutter applications.

flutter_twilio_voice #

Provides an interface to Twilio's Programmable Voice SDK to allow voice-over-IP (VoIP) calling into your Flutter applications.

Configure Server to Generate Access Token #

View Twilio Documentation on Access Token Generation: https://www.twilio.com/docs/iam/access-tokens

Make a Call #

 await FlutterTwilioVoice.makeCall(to: "$client_identifier_or_number_to_call",
                   accessTokenUrl: "https://${YOUR-SERVER-URL}/accesstoken");

Mute a Call #

 await FlutterTwilioVoice.muteCall(isMuted: true);

Toggle Speaker #

 await FlutterTwilioVoice.toggleSpeaker(speakerIsOn: true);

Hang Up #

 await FlutterTwilioVoice.hangUp();

Client Setup to Receive Calls #

 await FlutterTwilioVoice.receiveCalls(clientIdentifier: 'alice');

Listen for Call Events #

FlutterTwilioVoice.phoneCallEventSubscription.listen((data) 
    {
      setState(() {
        _callStatus = data.toString();
      });
    }, onError: (error) {
      setState(() {
        print(error);
      });
    });
    

To Do #

  1. Android Support
  2. Propagate Events and Call Status Notifications to Flutter
12
likes
150
points
45
downloads

Publisher

verified publishereopeter.com

Weekly Downloads

Provides an interface to Twilio's Programmable Voice SDK to allow adding voice-over-IP (VoIP) calling into your Flutter applications.

Homepage
Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_twilio_voice