public class CallInvite extends Object implements android.os.Parcelable
accept(Context, Call.Listener)
or
reject(Context)
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator |
CREATOR |
Modifier and Type | Method and Description |
---|---|
Call |
accept(android.content.Context context,
AcceptOptions acceptOptions,
Call.Listener listener)
Accepts the Call with ConnectOptions.
|
Call |
accept(android.content.Context context,
Call.Listener listener)
Accepts the Call with ConnectOptions.
|
int |
describeContents() |
boolean |
equals(Object o) |
String |
getCallSid()
Returns the CallSid.
|
Map<String,String> |
getCustomParameters()
Returns the custom parameters.
|
String |
getFrom()
Returns the caller information.
|
String |
getTo()
Returns the callee information.
|
void |
reject(android.content.Context context)
Rejects the Call.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public String getFrom()
public String getTo()
public String getCallSid()
public Map<String,String> getCustomParameters()
NOTE: While the value field passed into// Pass custom parameters in TwiML <?xml version="1.0" encoding="UTF-8"?> <Response> <Dial answerOnBridge="false" callerId="client:alice"> <Client> <Identity>bob</Identity> <Parameter name="caller_first_name" value="alice" /> <Parameter name="caller_last_name" value="smith" /> </Client> </Dial> </Response>
`callInvite.getCustomParameters()` returns a map of key-value pair passed in the TwiML."caller_first_name" -> "alice" "caller_last_name" -> "smith"
public Call accept(android.content.Context context, AcceptOptions acceptOptions, Call.Listener listener)
A SecurityException
will be thrown if RECORD_AUDIO is not granted.
context
- The application context of your Android application.acceptOptions
- A set of options that allow you to configure your Call
.listener
- A listener that receives call status.public Call accept(android.content.Context context, Call.Listener listener)
A SecurityException
will be thrown if RECORD_AUDIO is not granted.
context
- The application context of your Android application.listener
- A listener that receives call status.public void reject(android.content.Context context)
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
3.0.0-preview6