Merge "API: Add call service handoff trigger"
This commit is contained in:
committed by
Android (Google) Code Review
commit
8b5dd8c5d4
@@ -27598,6 +27598,7 @@ package android.telecomm {
|
||||
public final class CallServiceAdapter {
|
||||
method public void handleFailedOutgoingCall(android.telecomm.ConnectionRequest, int, java.lang.String);
|
||||
method public void handleSuccessfulOutgoingCall(java.lang.String);
|
||||
method public void handoffCall(java.lang.String);
|
||||
method public void notifyIncomingCall(android.telecomm.CallInfo);
|
||||
method public void onPostDialWait(java.lang.String, java.lang.String);
|
||||
method public void setActive(java.lang.String);
|
||||
|
||||
@@ -224,4 +224,16 @@ public final class CallServiceAdapter {
|
||||
} catch (RemoteException ignored) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecomm to handoff the call to another call service.
|
||||
*
|
||||
* @param callId The identifier of the call to handoff.
|
||||
*/
|
||||
public void handoffCall(String callId) {
|
||||
try {
|
||||
mAdapter.handoffCall(callId);
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,4 +54,6 @@ oneway interface ICallServiceAdapter {
|
||||
void removeCall(String callId);
|
||||
|
||||
void onPostDialWait(String callId, String remaining);
|
||||
|
||||
void handoffCall(String callId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user