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

This enum is used as keys to the Device's capabilities map.

The class of the value in the Map is annotated with each enum value.

Tasks

Name Description Type
INCOMING boolean that indicates whether the device can receive incoming calls. Field
OUTGOING boolean that indicates whether the device can make outgoing calls. Field
EXPIRATION long that represents the time the device's capability token expires (number of seconds relative to the UNIX epoch). Field
ACCOUNT_SID String representing the account SID. Field
APPLICATION_SID String representing the application SID used when making an outgoing call. Only present if OUTGOING is also present with a true value. Field
APPLICATION_PARAMETERS a Map<String, String> of parameters that are sent to the Twilio Application with each outgoing connection. Field
CLIENT_NAME a String representing the client name that should be used for incoming calls. Field

Fields

INCOMING

boolean that indicates whether the device can receive incoming calls.

OUTGOING

boolean that indicates whether the device can make outgoing calls.

EXPIRATION

long that represents the time the device's capability token expires (number of seconds relative to the UNIX epoch).

ACCOUNT_SID

String representing the account SID.

APPLICATION_SID

String representing the application SID used when making an outgoing call. Only present if OUTGOING is also present with a true value.

APPLICATION_PARAMETERS

a Map<String, String> of parameters that are sent to the Twilio Application with each outgoing connection.

CLIENT_NAME

a String representing the client name that should be used for incoming calls.

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