Provides an interface to Twilio's Programmable Voice SDK to allow voice-over-IP (VoIP) calling into your Flutter applications.
View Twilio Documentation on Access Token Generation: https://www.twilio.com/docs/iam/access-tokens
await FlutterTwilioVoice.makeCall(to: "$client_identifier_or_number_to_call",
accessTokenUrl: "https://${YOUR-SERVER-URL}/accesstoken");
await FlutterTwilioVoice.muteCall(isMuted: true);
await FlutterTwilioVoice.toggleSpeaker(speakerIsOn: true);
await FlutterTwilioVoice.hangUp();
await FlutterTwilioVoice.receiveCalls(clientIdentifier: 'alice');
FlutterTwilioVoice.phoneCallEventSubscription.listen((data)
{
setState(() {
_callStatus = data.toString();
});
}, onError: (error) {
setState(() {
print(error);
});
});
- Android Support
- Propagate Events and Call Status Notifications to Flutter