Methods Summary |
---|
public void | accept(int callType, com.android.ims.ImsStreamMediaProfile profile)Accepts an incoming call or session update.
|
public void | close()Closes the object. This object is not usable after being closed.
|
public void | extendToConference(java.lang.String[] participants)Extends this call to the conference call with the specified recipients.
|
public java.lang.String | getCallId()Gets the call ID of the session.
|
public com.android.ims.ImsCallProfile | getCallProfile()Gets the call profile that this session is associated with
|
public com.android.ims.ImsCallProfile | getLocalCallProfile()Gets the local call profile that this session is associated with
|
public java.lang.String | getProperty(java.lang.String name)Gets the value associated with the specified property of this session.
|
public com.android.ims.ImsCallProfile | getRemoteCallProfile()Gets the remote call profile that this session is associated with
|
public int | getState()Gets the session state. The value returned must be one of the states in
{@link ImsCallSession#State}.
|
public com.android.ims.internal.IImsVideoCallProvider | getVideoCallProvider()Returns a binder for the video call provider implementation contained within the IMS service
process. This binder is used by the VideoCallProvider subclass in Telephony which
intermediates between the propriety implementation and Telecomm/InCall.
|
public void | hold(com.android.ims.ImsStreamMediaProfile profile)Puts a call on hold. When it succeeds, {@link Listener#callSessionHeld} is called.
|
public void | inviteParticipants(java.lang.String[] participants)Requests the conference server to invite an additional participants to the conference.
|
public boolean | isInCall()Checks if the session is in a call.
|
public boolean | isMultiparty()Determines if the current session is multiparty.
|
public void | merge()Merges the active & hold call. When the merge starts,
{@link Listener#callSessionMergeStarted} is called.
{@link Listener#callSessionMergeComplete} is called if the merge is successful, and
{@link Listener#callSessionMergeFailed} is called if the merge fails.
|
public void | reject(int reason)Rejects an incoming call or session update.
|
public void | removeParticipants(java.lang.String[] participants)Requests the conference server to remove the specified participants from the conference.
|
public void | resume(com.android.ims.ImsStreamMediaProfile profile)Continues a call that's on hold. When it succeeds, {@link Listener#callSessionResumed}
is called.
|
public void | sendDtmf(char c, android.os.Message result)Sends a DTMF code. According to RFC 2833,
event 0 ~ 9 maps to decimal value 0 ~ 9, '*' to 10, '#' to 11, event 'A' ~ 'D' to 12 ~ 15,
and event flash to 16. Currently, event flash is not supported.
|
public void | sendUssd(java.lang.String ussdMessage)Sends an USSD message.
|
public void | setListener(com.android.ims.internal.IImsCallSessionListener listener)Sets the listener to listen to the session events. A {@link IImsCallSession}
can only hold one listener at a time. Subsequent calls to this method
override the previous listener.
|
public void | setMute(boolean muted)Mutes or unmutes the mic for the active call.
|
public void | start(java.lang.String callee, com.android.ims.ImsCallProfile profile)Initiates an IMS call with the specified target and call profile.
The session listener is called back upon defined session events.
The method is only valid to call when the session state is in
{@link ImsCallSession#State#IDLE}.
|
public void | startConference(java.lang.String[] participants, com.android.ims.ImsCallProfile profile)Initiates an IMS call with the specified participants and call profile.
The session listener is called back upon defined session events.
The method is only valid to call when the session state is in
{@link ImsCallSession#State#IDLE}.
|
public void | startDtmf(char c)Start a DTMF code. According to RFC 2833,
event 0 ~ 9 maps to decimal value 0 ~ 9, '*' to 10, '#' to 11, event 'A' ~ 'D' to 12 ~ 15,
and event flash to 16. Currently, event flash is not supported.
|
public void | stopDtmf()Stop a DTMF code.
|
public void | terminate(int reason)Terminates a call.
|
public void | update(int callType, com.android.ims.ImsStreamMediaProfile profile)Updates the current call's properties (ex. call mode change: video upgrade / downgrade).
|