public static enum Device.Capability extends java.lang.Enum<Device.Capability>
Device.getCapabilities()
Enum Constant and Description |
---|
ACCOUNT_SID
String representing the account SID. |
APPLICATION_PARAMETERS
a
Map<String, String> of parameters that are sent to the Twilio Application with each outgoing connection. |
APPLICATION_SID
String representing the application SID used when making an outgoing call. |
CLIENT_NAME
a
String representing the client name that should be used for incoming calls. |
EXPIRATION
long that represents the time the device's capability token expires (number of seconds relative to the UNIX epoch). |
INCOMING
boolean that indicates whether the device can receive incoming calls. |
OUTGOING
boolean that indicates whether the device can make outgoing calls. |
Modifier and Type | Method and Description |
---|---|
static Device.Capability |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Device.Capability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Device.Capability INCOMING
boolean
that indicates whether the device can receive incoming calls.public static final Device.Capability OUTGOING
boolean
that indicates whether the device can make outgoing calls.public static final Device.Capability EXPIRATION
long
that represents the time the device's capability token expires (number of seconds relative to the UNIX epoch).public static final Device.Capability ACCOUNT_SID
String
representing the account SID.public static final Device.Capability APPLICATION_SID
String
representing the application SID used when making an outgoing call. Only present if OUTGOING is also present with a true
value.public static final Device.Capability APPLICATION_PARAMETERS
Map<String, String>
of parameters that are sent to the Twilio Application with each outgoing connection.public static final Device.Capability CLIENT_NAME
String
representing the client name that should be used for incoming calls.public static Device.Capability[] values()
for (Device.Capability c : Device.Capability.values()) System.out.println(c);
public static Device.Capability valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null