Define handover event sent when source disconnects prior to handover.

Define new event which is sent to the destination call if the source
disconnects prior to the completion of the handover.

Test: Manual using test app
Bug: 62904673
Change-Id: I9fa74e374f78beb801f08ce1fd7260d7d7fe7cac
This commit is contained in:
Tyler Gunn
2017-06-23 08:32:00 -07:00
parent 5af936f31e
commit 34a2b31e95

View File

@@ -189,6 +189,19 @@ public final class Call {
*/
public static final String EVENT_HANDOVER_COMPLETE =
"android.telecom.event.HANDOVER_COMPLETE";
/**
* Call event sent from Telecom to the handover destination {@link ConnectionService} via
* {@link Connection#onCallEvent(String, Bundle)} to inform the handover destination that the
* source connection has disconnected. The {@link Bundle} parameter for the call event will be
* {@code null}.
* <p>
* A handover is initiated with the {@link #EVENT_REQUEST_HANDOVER} call event.
* @hide
*/
public static final String EVENT_HANDOVER_SOURCE_DISCONNECTED =
"android.telecom.event.HANDOVER_SOURCE_DISCONNECTED";
/**
* Call event sent from Telecom to the handover {@link ConnectionService} via
* {@link Connection#onCallEvent(String, Bundle)} to inform a {@link Connection} that a handover