IMS: Add support for IMS Explicit call transfer
Test: Manual Bug: 62170207 Change-Id: I06a256adb0e1910d40809c91bcdd42c56a142842
This commit is contained in:
30
telecomm/java/android/telecom/InCallAdapter.java
Normal file → Executable file
30
telecomm/java/android/telecom/InCallAdapter.java
Normal file → Executable file
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.telecom;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.bluetooth.BluetoothDevice;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
@@ -101,6 +102,35 @@ public final class InCallAdapter {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecom to transfer the specified call.
|
||||
*
|
||||
* @param callId The identifier of the call to transfer.
|
||||
* @param targetNumber The address to transfer to.
|
||||
* @param isConfirmationRequired if {@code true} it will initiate ASSURED transfer,
|
||||
* if {@code false}, it will initiate BLIND transfer.
|
||||
*/
|
||||
public void transferCall(@NonNull String callId, @NonNull Uri targetNumber,
|
||||
boolean isConfirmationRequired) {
|
||||
try {
|
||||
mAdapter.transferCall(callId, targetNumber, isConfirmationRequired);
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecom to transfer the specified call to another ongoing call.
|
||||
*
|
||||
* @param callId The identifier of the call to transfer.
|
||||
* @param otherCallId The identifier of the other call to which this will be transferred.
|
||||
*/
|
||||
public void transferCall(@NonNull String callId, @NonNull String otherCallId) {
|
||||
try {
|
||||
mAdapter.consultativeTransfer(callId, otherCallId);
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructs Telecom to disconnect the specified call.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user