public interface Call
Modifier and Type | Method and Description |
---|---|
void |
addCallListener(CallListener callListener)
Adds a listener to the call.
|
void |
answer()
Answers an incoming call.
|
java.lang.String |
getCallId()
Returns the call identifier.
|
CallDetails |
getDetails()
Returns metadata about the call.
|
CallDirection |
getDirection()
Returns the
CallDirection of the call. |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
Returns the headers.
|
java.lang.String |
getRemoteUserId()
Returns the identifier of the remote participant in the call.
|
CallState |
getState()
Returns the
CallState the call is currently in. |
void |
hangup()
Ends the call, regardless of what state it is in.
|
void |
pauseVideo()
Pause the video capturing.
|
void |
removeCallListener(CallListener callListener)
Removes a listener from the call.
|
void |
resumeVideo()
Resume the video capturing.
|
void |
sendDTMF(java.lang.String keys)
Sends one or more DTMF tones for tone dialing.
|
void |
setBandwidthLimits(int maxAudioBitrate,
int maxVideoBitrate)
Sets bandwidth limitations on negotiated media streams.
|
void |
setMediaHandover(boolean enabled)
Enables and disables media handover functionality.
|
void addCallListener(CallListener callListener)
callListener
- the CallListener
void removeCallListener(CallListener callListener)
callListener
- the CallListener
void answer()
MissingPermissionException
- If the application is missing permission to record
audiovoid hangup()
java.lang.String getCallId()
java.lang.String getRemoteUserId()
CallDetails getDetails()
CallDetails
containing metadata about the call.CallState getState()
CallState
the call is currently in.CallDirection getDirection()
CallDirection
of the call.void sendDTMF(java.lang.String keys)
keys
- May be a series of DTMF keys. Each key must be in [0-9, #, *, A-D].java.lang.IllegalArgumentException
- if any of the given DTMF keys is invalidvoid pauseVideo()
void resumeVideo()
java.util.Map<java.lang.String,java.lang.String> getHeaders()
onCallProgressing
or onCallEstablished
callbacks for CallListener
are called.void setMediaHandover(boolean enabled)
enabled
- equal to false disables media handover from WiFi to cellular when WiFi is lost.void setBandwidthLimits(int maxAudioBitrate, int maxVideoBitrate)
maxAudioBitrate
- sets max audio bitrates in kbps.maxVideoBitrate
- sets max video bitrates in kbps.Copyright 2016, Sinch AB