Interface CallSession
com.poly.polyos.call
Interface CallSession
public interface
CallSession
Represents a Call
in progress, after the IPolyCallService.requestNewCall(Call)
has been granted by PolyOS. Experimental API
Method Summary
Modifier and Type | Method and Description |
---|---|
AudioRoute[] | getAudioRoutes() |
Returns the current audio route destinations active for this call | |
Call | getCall() |
Returns the Call that this session is for | |
Call.CallState | getCallState() |
Returns the Call.CallState of this session | |
void | notifyCallEnded() |
Informs PolyOS that the call has ended | |
void | notifyCallOnHold() |
Informs PolyOS that the call is now on hold | |
void | notifyCallStats(CallStats callStats) |
Notifies PolyOS about the statistics of a call | |
void | requestCallResume() |
Requests permission from PolyOS to resume a call that is currently on hold | |
boolean | setAudioRoutes(AudioRoute[] audioRoute) |
Changes the audio route for an ongoing call. |
Method Detail
getCall
Call getCall()
Returns the Call
that this session is for
getCallState
Call.CallState getCallState()
Returns the Call.CallState
of this session
notifyCallEnded
void notifyCallEnded()
Informs PolyOS that the call has ended
notifyCallOnHold
void notifyCallOnHold()
Informs PolyOS that the call is now on hold
notifyCallStats
void notifyCallStats(CallStats callStats)
Notifies PolyOS about the statistics of a call
requestCallResume
void requestCallResume()
Requests permission from PolyOS to resume a call that is currently on hold.
PolyOS calls IPolyCallListener.onRequestGranted(Call, CallSession)
if the request is granted, or IPolyCallListener.onRequestDenied(Call)
if the request is denied.
setAudioRoutes
boolean setAudioRoutes(AudioRoute[] audioRoute)
Changes the audio route for an ongoing call.
Parameters
audioRoute
- The audio route destinations to use.
Returns:
Returns true if successful
getAudioRoutes
AudioRoute[] getAudioRoutes()
Returns the current audio route destinations active for a call.