Stay organized with collections Save and categorize content based on your preferences.

CallEventCallback

public interface CallEventCallback

android.telecom.CallEventCallback


CallEventCallback relays call updates (that do not require any action) from the Telecom framework out to the application. This can include operations which the app must implement on a Call due to the presence of other calls on the device, requests relayed from a Bluetooth device, or from another calling surface.

Summary

Public methods

abstract void onAvailableCallEndpointsChanged(List<CallEndpoint> availableEndpoints)

Telecom is informing the client that the available CallEndpoints have changed.

abstract void onCallEndpointChanged(CallEndpoint newCallEndpoint)

Telecom is informing the client the current CallEndpoint changed.

abstract void onCallStreamingFailed(int reason)

Telecom is informing the client user requested call streaming but the stream can't be started.

abstract void onMuteStateChanged(boolean isMuted)

Called when the mute state changes.

Public methods

onAvailableCallEndpointsChanged

public abstract void onAvailableCallEndpointsChanged (List<CallEndpoint> availableEndpoints)

Telecom is informing the client that the available CallEndpoints have changed.

Parameters
availableEndpoints List: The set of available CallEndpoints reported by Telecom. This value cannot be null.

onCallEndpointChanged

public abstract void onCallEndpointChanged (CallEndpoint newCallEndpoint)

Telecom is informing the client the current CallEndpoint changed.

Parameters
newCallEndpoint CallEndpoint: The new CallEndpoint through which call media flows (i.e. speaker, bluetooth, etc.). This value cannot be null.

onCallStreamingFailed

public abstract void onCallStreamingFailed (int reason)

Telecom is informing the client user requested call streaming but the stream can't be started.

Parameters
reason int: Code to indicate the reason of this failure Value is android.telecom.CallStreamingService.STREAMING_FAILED_UNKNOWN, android.telecom.CallStreamingService.STREAMING_FAILED_ALREADY_STREAMING, android.telecom.CallStreamingService.STREAMING_FAILED_NO_SENDER, or android.telecom.CallStreamingService.STREAMING_FAILED_SENDER_BINDING_ERROR

onMuteStateChanged

public abstract void onMuteStateChanged (boolean isMuted)

Called when the mute state changes.

Parameters
isMuted boolean: The current mute state.