public class Call
extends InternalCall
Modifier and Type | Class and Description |
---|---|
static interface |
Call.Listener
Call.Listener interface defines a set of callbacks for events related to
call.
|
Modifier and Type | Method and Description |
---|---|
void |
disconnect()
Disconnects the Call.
|
String |
getFrom()
Returns the caller information when available.
|
String |
getSid()
Returns the call sid.
|
CallState |
getState()
Returns the current state of the call.
|
String |
getTo()
Returns the callee information when available.
|
boolean |
isMuted()
Reports whether the audio input is muted.
|
void |
mute(boolean mute)
Mutes or unmutes the audio input.
|
void |
sendDigits(String digits)
Sends a string of DTMF digits.
|
public String getFrom()
public String getTo()
public String getSid()
public CallState getState()
Call is in CallState.CONNECTING
state when it is made or accepted.
Call transitions to CallState.CONNECTED
state when connected to Twilio.
Call transitions to CallState.DISCONNECTED
state when disconnected.
public void mute(boolean mute)
public void sendDigits(String digits)
digits
- A string of digits to be sent. Valid values are "0" - "9", "*", "#", and "w". Each "w" will cause a 500 ms pause between digits sent.public boolean isMuted()
public void disconnect()
Call
or accepted the CallInvite
.