From d87786645bd2f0282e539a0119151c530fc3f39c Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Fri, 10 Feb 2023 17:13:11 +0000 Subject: Improve TelecomManager#addNewIncomingCall API docs. Make it more clear how to specify an anonymous call and its associated presentation. Test: docs only change. Bug: 257534258 Change-Id: Ieb44fe8c9de954eabfda0d959fe529d63b53f72d --- telecomm/java/android/telecom/TelecomManager.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java index 983d82b4f860..3d4bcef66e46 100644 --- a/telecomm/java/android/telecom/TelecomManager.java +++ b/telecomm/java/android/telecom/TelecomManager.java @@ -2043,6 +2043,14 @@ public class TelecomManager { * {@link #getPhoneAccount}. Self-managed {@link ConnectionService}s must have * {@link android.Manifest.permission#MANAGE_OWN_CALLS} to add a new incoming call. *

+ * Specify the address associated with the incoming call using + * {@link #EXTRA_INCOMING_CALL_ADDRESS}. If an incoming call is from an anonymous source, omit + * this extra and ensure you specify a valid number presentation via + * {@link Connection#setAddress(Uri, int)} on the {@link Connection} instance you return in + * your + * {@link ConnectionService#onCreateIncomingConnection(PhoneAccountHandle, ConnectionRequest)} + * implementation. + *

* The incoming call you are adding is assumed to have a video state of * {@link VideoProfile#STATE_AUDIO_ONLY}, unless the extra value * {@link #EXTRA_INCOMING_VIDEO_STATE} is specified. -- cgit v1.2.3-59-g8ed1b