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?

Device.State Class Reference

Deprecation Notice

The Twilio Client SDK for Android has been deprecated and replaced by Twilio's 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

The Device.State enum represents the various states of the device's ability to listen for incoming connections and make outgoing connections.

Tasks

Name Description Type
OFFLINE The device is not connected and cannot receive incoming connections or make outgoing connections. Field
READY The device can receive incoming connections and attempt outgoing connections if capabilities allow. Field
BUSY The device is connected to the network and has an active connection. No additional connections can be created or accepted. Field

Fields

OFFLINE

The device is not connected and cannot receive incoming connections or make outgoing connections.

READY

The device can receive incoming connections and attempt outgoing connections if capabilities allow.

BUSY

The device is connected to the network and has an active connection. No additional connections can be created or accepted.

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...