Language

InCallService.OnCallEndpointRequested(CallEndpoint) Method

Definition

Called by the platform when an InCallService changes the audio route using #requestCallEndpointChange(CallEndpoint, Executor, OutcomeReceiver) to initiate a call endpoint change.

[Android.Runtime.Register("onCallEndpointRequested", "(Landroid/telecom/CallEndpoint;)V", "GetOnCallEndpointRequested_Landroid_telecom_CallEndpoint_Handler", ApiSince=37)]
public virtual void OnCallEndpointRequested(Android.Telecom.CallEndpoint callEndpoint);
[<Android.Runtime.Register("onCallEndpointRequested", "(Landroid/telecom/CallEndpoint;)V", "GetOnCallEndpointRequested_Landroid_telecom_CallEndpoint_Handler", ApiSince=37)>]
abstract member OnCallEndpointRequested : Android.Telecom.CallEndpoint -> unit
override this.OnCallEndpointRequested : Android.Telecom.CallEndpoint -> unit

Parameters

callEndpoint
CallEndpoint

The requested CallEndpoint.

Attributes

Remarks

Called by the platform when an InCallService changes the audio route using requestCallEndpointChange(CallEndpoint,Executor,OutcomeReceiver) to initiate a call endpoint change. It is intended so that an InCallService (e.g. a non-UI companion app) can be aware of audio route changes initiated by other InCallServices (e.g., the user changing the endpoint in the Dialer application). Note that requests reported by this API are not final until onCallEndpointChanged(CallEndpoint) is called with the requested endpoint. The actual endpoint change may differ from the request in cases where a device becomes unavailable or the routing request fails to complete.

Android reference for android.telecom.InCallService.onCallEndpointRequested.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to