Menu

Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Connection.State Class Reference

Deprecation Notice

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.

Overview

  • Package: com.twilio.client
  • Subclass of: Enum

An enum describing the current state of the Connection.

Tasks

Name Description Type
PENDING The connection is new and incoming, and has not been accepted, ignored, or rejected yet. Field
CONNECTING The connection has been initiated (outgoing) or accepted (incoming), and is in the process of connecting. Field
CONNECTED The connection is connected and active. Field
DISCONNECTED The connection has been disconnected, either due to an explicit hangup command or an error. Field

Fields

PENDING

The connection is new and incoming, and has not been accepted, ignored, or rejected yet.

CONNECTING

The connection has been initiated (outgoing) or accepted (incoming), and is in the process of connecting.

CONNECTED

The connection is connected and active.

DISCONNECTED

The connection has been disconnected, either due to an explicit hangup command or an error.

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.

Loading Code Sample...