summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/InCallAdapter.java
diff options
context:
space:
mode:
Diffstat (limited to 'telecomm/java/android/telecom/InCallAdapter.java')
-rw-r--r--telecomm/java/android/telecom/InCallAdapter.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/InCallAdapter.java b/telecomm/java/android/telecom/InCallAdapter.java
index 261246818f1d..594c1eb392b3 100644
--- a/telecomm/java/android/telecom/InCallAdapter.java
+++ b/telecomm/java/android/telecom/InCallAdapter.java
@@ -89,6 +89,19 @@ public final class InCallAdapter {
}
/**
+ * Instructs Telecom to reject the specified call.
+ *
+ * @param callId The identifier of the call to reject.
+ * @param rejectReason The reason the call was rejected.
+ */
+ public void rejectCall(String callId, @Call.RejectReason int rejectReason) {
+ try {
+ mAdapter.rejectCallWithReason(callId, rejectReason);
+ } catch (RemoteException e) {
+ }
+ }
+
+ /**
* Instructs Telecom to disconnect the specified call.
*
* @param callId The identifier of the call to disconnect.