Files
frameworks_base/telecomm/java/android/telecom/CallEndpointCallback.java
Grace Jia e086d088a9 Add API for cross device calling.
Test: CTS test
Change-Id: I1a3aa6c1ae6d445a2f3b55e5f0d11918da5bed33
2022-01-12 13:50:52 -08:00

39 lines
1.5 KiB
Java

/*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.telecom;
/**
* Provides callbacks from telecom to the cross device call streaming app with lifecycle events
* related to an {@link CallEndpointSession}.
*/
public interface CallEndpointCallback {
/**
* Invoked by telecom when a {@link CallEndpointSession} is started but the streaming app has
* not activated the endpoint in a timely manner and the framework deems the activation request
* to have timed out.
*/
void onCallEndpointSessionActivationTimeout();
/**
* Invoked by telecom when {@link CallEndpointSession#setCallEndpointSessionDeactivated()}
* called by a cross device call streaming app, or when the app uninstalled. When a tethered
* {@link CallEndpoint} is deactivated, the call streaming app should clean up any
* audio/network resources and stop relaying call controls from the endpoint.
*/
void onCallEndpointSessionDeactivated();
}