Update API docs for Call#putExtras.

Make it clear how extras propagation between an InCallService and
ConnectionService works.

Fixes: 264892325
Test: Added new CTS test to verify this behavior end to end.
Change-Id: I561f15cd886711101f2129e26b7fae1f12c5dd11
This commit is contained in:
Tyler Gunn
2023-01-09 11:23:18 -08:00
parent 686f2652dd
commit 6c10024604

View File

@@ -2123,6 +2123,14 @@ public final class Call {
* <p>
* No assumptions should be made as to how an In-Call UI or service will handle these
* extras. Keys should be fully qualified (e.g., com.example.MY_EXTRA) to avoid conflicts.
* <p>
* Extras added using this method will be made available to the {@link ConnectionService}
* associated with this {@link Call} and notified via
* {@link Connection#onExtrasChanged(Bundle)}.
* <p>
* Extras added using this method will also be available to other running {@link InCallService}s
* and notified via {@link Call.Callback#onDetailsChanged(Call, Details)}. The extras can be
* accessed via {@link Details#getExtras()}.
*
* @param extras The extras to add.
*/