Methods Summary |
---|
public void | answerCall(java.lang.String callId, int videoState)Instructs Telecom to answer the specified call.
try {
mAdapter.answerCall(callId, videoState);
} catch (RemoteException e) {
}
|
public void | conference(java.lang.String callId, java.lang.String otherCallId)Instructs Telecom to conference the specified call.
try {
mAdapter.conference(callId, otherCallId);
} catch (RemoteException ignored) {
}
|
public void | disconnectCall(java.lang.String callId)Instructs Telecom to disconnect the specified call.
try {
mAdapter.disconnectCall(callId);
} catch (RemoteException e) {
}
|
public void | holdCall(java.lang.String callId)Instructs Telecom to put the specified call on hold.
try {
mAdapter.holdCall(callId);
} catch (RemoteException e) {
}
|
public void | mergeConference(java.lang.String callId)Instructs Telecom to merge child calls of the specified conference call.
try {
mAdapter.mergeConference(callId);
} catch (RemoteException ignored) {
}
|
public void | mute(boolean shouldMute)Mute the microphone.
try {
mAdapter.mute(shouldMute);
} catch (RemoteException e) {
}
|
public void | phoneAccountSelected(java.lang.String callId, PhoneAccountHandle accountHandle, boolean setDefault)Instructs Telecom to add a PhoneAccountHandle to the specified call.
try {
mAdapter.phoneAccountSelected(callId, accountHandle, setDefault);
} catch (RemoteException e) {
}
|
public void | playDtmfTone(java.lang.String callId, char digit)Instructs Telecom to play a dual-tone multi-frequency signaling (DTMF) tone in a call.
Any other currently playing DTMF tone in the specified call is immediately stopped.
try {
mAdapter.playDtmfTone(callId, digit);
} catch (RemoteException e) {
}
|
public void | postDialContinue(java.lang.String callId, boolean proceed)Instructs Telecom to continue playing a post-dial DTMF string.
A post-dial DTMF string is a string of digits entered after a phone number, when dialed,
that are immediately sent as DTMF tones to the recipient as soon as the connection is made.
While these tones are playing, Telecom will notify the {@link InCallService} that the call
is in the post dial state.
If the DTMF string contains a {@link TelecomManager#DTMF_CHARACTER_PAUSE} symbol, Telecom
will temporarily pause playing the tones for a pre-defined period of time.
If the DTMF string contains a {@link TelecomManager#DTMF_CHARACTER_WAIT} symbol, Telecom
will pause playing the tones and notify the {@link InCallService} that the call is in the
post dial wait state. When the user decides to continue the postdial sequence, the
{@link InCallService} should invoke the {@link #postDialContinue(String,boolean)} method.
try {
mAdapter.postDialContinue(callId, proceed);
} catch (RemoteException e) {
}
|
public void | rejectCall(java.lang.String callId, boolean rejectWithMessage, java.lang.String textMessage)Instructs Telecom to reject the specified call.
try {
mAdapter.rejectCall(callId, rejectWithMessage, textMessage);
} catch (RemoteException e) {
}
|
public void | setAudioRoute(int route)Sets the audio route (speaker, bluetooth, etc...). See {@link AudioState}.
try {
mAdapter.setAudioRoute(route);
} catch (RemoteException e) {
}
|
public void | splitFromConference(java.lang.String callId)Instructs Telecom to split the specified call from any conference call with which it may be
connected.
try {
mAdapter.splitFromConference(callId);
} catch (RemoteException ignored) {
}
|
public void | stopDtmfTone(java.lang.String callId)Instructs Telecom to stop any dual-tone multi-frequency signaling (DTMF) tone currently
playing.
DTMF tones are played by calling {@link #playDtmfTone(String,char)}. If no DTMF tone is
currently playing, this method will do nothing.
try {
mAdapter.stopDtmfTone(callId);
} catch (RemoteException e) {
}
|
public void | swapConference(java.lang.String callId)Instructs Telecom to swap the child calls of the specified conference call.
try {
mAdapter.swapConference(callId);
} catch (RemoteException ignored) {
}
|
public void | turnProximitySensorOff(boolean screenOnImmediately)Instructs Telecom to turn the proximity sensor off.
try {
mAdapter.turnOffProximitySensor(screenOnImmediately);
} catch (RemoteException ignored) {
}
|
public void | turnProximitySensorOn()Instructs Telecom to turn the proximity sensor on.
try {
mAdapter.turnOnProximitySensor();
} catch (RemoteException ignored) {
}
|
public void | unholdCall(java.lang.String callId)Instructs Telecom to release the specified call from hold.
try {
mAdapter.unholdCall(callId);
} catch (RemoteException e) {
}
|