Skip to main content

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 TypeMethod and Description
AudioRoute[]getAudioRoutes()
Returns the current audio route destinations active for this call
CallgetCall()
Returns the Call that this session is for
Call.CallStategetCallState()
Returns the Call.CallState of this session
voidnotifyCallEnded()
Informs PolyOS that the call has ended
voidnotifyCallOnHold()
Informs PolyOS that the call is now on hold
voidnotifyCallStats(CallStats callStats)
Notifies PolyOS about the statistics of a call
voidrequestCallResume()
Requests permission from PolyOS to resume a call that is currently on hold
booleansetAudioRoutes(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.