The Twilio Client SDK for Android has been deprecated and replaced by Twilio's new Programmable Voice SDK.
The Programmable Voice SDK offers many improvements over the Twilio Client SDK, including greater stability, improved backgrounding, and built-in support for push notifications for incoming calls.
If you're just getting started with a Twilio mobile application for voice calling, we recommend you use the Programmable Voice SDK. If you're already using the Twilio Client SDK, you should plan to upgrade to the Programmable Voice SDK as soon as you're able.
Get started with the new Programmable Voice SDK by checking out the quickstart for Programmable Voice SDK for Android on Github.
The ConnectionListener interface defines a set of callbacks for events related to a
|onConnecting||Called for a newly-created
|onConnected||Called after the
|onDisconnected||Called after the
|onDisconnected||Called when an error occurs on the specified connection.||Instance method|
Called for a newly-created
Connection when it is connecting to your Twilio application.
||The Connection that has started connecting|
Called after the
Connection has successfully connected to your Twilio application.
Note that this does not necessarily mean your application has executed successfully; it only indicates that the connection has been established.
||The Connection that has finished connecting|
Called after the
Connection has been disconnected, ignored, or rejected by either party.
||The Connection that has disconnected|
Called when an error occurs on the specified connection.
After this callback has been called, it is safe to assume that the connection is no longer connected.
For a list of error codes and their meanings, see http://www.twilio.com/docs/client/errors.
||The Connection that has experienced an error|
||The error code that pinpoints the error|
||A string describing the error in a human-readable form|