diff options
| author | 2023-02-28 19:53:50 +0000 | |
|---|---|---|
| committer | 2023-02-28 19:53:50 +0000 | |
| commit | 58fda43df792ea7cb97b09fdf0ac36b7b529eb87 (patch) | |
| tree | 63823a96e543406ed382d4384b9f781c0af4a109 | |
| parent | 9c6d82c50ccfa760ba8a22df1adf1c9895beaf80 (diff) | |
| parent | 64c81721d48f2bf9f1d128983c058516d8059d20 (diff) | |
Merge "Improve TelecomManager#addNewIncomingCall API docs." am: 64c81721d4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2431252
Change-Id: I24cff7d26d37f21acfe420939190cb3b63d659c1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | telecomm/java/android/telecom/TelecomManager.java | 8 |
1 files changed, 8 insertions, 0 deletions
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. * <p> + * 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. + * <p> * 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. |