Android APIs
public static abstract class

RemoteConnection.Callback

extends Object
java.lang.Object
   ↳ android.telecom.RemoteConnection.Callback

Class Overview

Callback base class for RemoteConnection.

Summary

Public Constructors
RemoteConnection.Callback()
Public Methods
void onAddressChanged(RemoteConnection connection, Uri address, int presentation)
Indicates that the address (e.g., phone number) of this RemoteConnection has changed.
void onCallerDisplayNameChanged(RemoteConnection connection, String callerDisplayName, int presentation)
Indicates that the caller display name of this RemoteConnection has changed.
void onConferenceChanged(RemoteConnection connection, RemoteConference conference)
Indicates that the RemoteConference that this RemoteConnection is a part of has changed.
void onConferenceableConnectionsChanged(RemoteConnection connection, List<RemoteConnection> conferenceableConnections)
Indicates that the RemoteConnections with which this RemoteConnection may be asked to create a conference has changed.
void onConnectionCapabilitiesChanged(RemoteConnection connection, int connectionCapabilities)
Indicates that the call capabilities of this RemoteConnection have changed.
void onDestroyed(RemoteConnection connection)
Indicates that this RemoteConnection has been destroyed.
void onDisconnected(RemoteConnection connection, DisconnectCause disconnectCause)
Invoked when this RemoteConnection is disconnected.
void onExtrasChanged(RemoteConnection connection, Bundle extras)
Handles changes to the RemoteConnection extras.
void onPostDialChar(RemoteConnection connection, char nextChar)
Invoked when the post-dial sequence in the outgoing Connection has processed a character.
void onPostDialWait(RemoteConnection connection, String remainingPostDialSequence)
Invoked when the post-dial sequence in the outgoing Connection has reached a pause character.
void onRingbackRequested(RemoteConnection connection, boolean ringback)
Invoked when this RemoteConnection is requesting ringback.
void onStateChanged(RemoteConnection connection, int state)
Invoked when the state of this RemoteConnection has changed.
void onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints)
Indicates that the status hints of this RemoteConnection have changed.
void onVideoProviderChanged(RemoteConnection connection, RemoteConnection.VideoProvider videoProvider)
Indicates that the VideoProvider associated with this RemoteConnection has changed.
void onVideoStateChanged(RemoteConnection connection, int videoState)
Indicates that the video state of this RemoteConnection has changed.
void onVoipAudioChanged(RemoteConnection connection, boolean isVoip)
Indicates that the VOIP audio status of this RemoteConnection has changed.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RemoteConnection.Callback ()

Added in API level 23

Public Methods

public void onAddressChanged (RemoteConnection connection, Uri address, int presentation)

Added in API level 23

Indicates that the address (e.g., phone number) of this RemoteConnection has changed. See getAddress() and getAddressPresentation().

Parameters
connection The RemoteConnection invoking this method.
address The new address of the RemoteConnection.
presentation The presentation requirements for the address. See TelecomManager for valid values.

public void onCallerDisplayNameChanged (RemoteConnection connection, String callerDisplayName, int presentation)

Added in API level 23

Indicates that the caller display name of this RemoteConnection has changed. See getCallerDisplayName() and getCallerDisplayNamePresentation().

Parameters
connection The RemoteConnection invoking this method.
callerDisplayName The new caller display name of the RemoteConnection.
presentation The presentation requirements for the handle. See TelecomManager for valid values.

public void onConferenceChanged (RemoteConnection connection, RemoteConference conference)

Added in API level 23

Indicates that the RemoteConference that this RemoteConnection is a part of has changed.

Parameters
connection The RemoteConnection invoking this method.
conference The RemoteConference of which this RemoteConnection is a part, which may be null.

public void onConferenceableConnectionsChanged (RemoteConnection connection, List<RemoteConnection> conferenceableConnections)

Added in API level 23

Indicates that the RemoteConnections with which this RemoteConnection may be asked to create a conference has changed.

Parameters
connection The RemoteConnection invoking this method.
conferenceableConnections The RemoteConnections with which this RemoteConnection may be asked to create a conference.

public void onConnectionCapabilitiesChanged (RemoteConnection connection, int connectionCapabilities)

Added in API level 23

Indicates that the call capabilities of this RemoteConnection have changed. See getConnectionCapabilities().

Parameters
connection The RemoteConnection invoking this method.
connectionCapabilities The new capabilities of the RemoteConnection.

public void onDestroyed (RemoteConnection connection)

Added in API level 23

Indicates that this RemoteConnection has been destroyed. No further requests should be made to the RemoteConnection, and references to it should be cleared.

Parameters
connection The RemoteConnection invoking this method.

public void onDisconnected (RemoteConnection connection, DisconnectCause disconnectCause)

Added in API level 23

Invoked when this RemoteConnection is disconnected.

Parameters
connection The RemoteConnection invoking this method.
disconnectCause The () associated with this failed connection.

public void onExtrasChanged (RemoteConnection connection, Bundle extras)

Added in API level 23

Handles changes to the RemoteConnection extras.

Parameters
connection The RemoteConnection invoking this method.
extras The extras containing other information associated with the connection.

public void onPostDialChar (RemoteConnection connection, char nextChar)

Added in API level 23

Invoked when the post-dial sequence in the outgoing Connection has processed a character.

Parameters
connection The RemoteConnection invoking this method.
nextChar The character being processed.

public void onPostDialWait (RemoteConnection connection, String remainingPostDialSequence)

Added in API level 23

Invoked when the post-dial sequence in the outgoing Connection has reached a pause character. This causes the post-dial signals to stop pending user confirmation. An implementation should present this choice to the user and invoke postDialContinue(boolean) when the user makes the choice.

Parameters
connection The RemoteConnection invoking this method.
remainingPostDialSequence The post-dial characters that remain to be sent.

public void onRingbackRequested (RemoteConnection connection, boolean ringback)

Added in API level 23

Invoked when this RemoteConnection is requesting ringback. See isRingbackRequested().

Parameters
connection The RemoteConnection invoking this method.
ringback Whether the RemoteConnection is requesting ringback.

public void onStateChanged (RemoteConnection connection, int state)

Added in API level 23

Invoked when the state of this RemoteConnection has changed. See getState().

Parameters
connection The RemoteConnection invoking this method.
state The new state of the RemoteConnection.

public void onStatusHintsChanged (RemoteConnection connection, StatusHints statusHints)

Added in API level 23

Indicates that the status hints of this RemoteConnection have changed. See getStatusHints() ()}.

Parameters
connection The RemoteConnection invoking this method.
statusHints The new status hints of the RemoteConnection.

public void onVideoProviderChanged (RemoteConnection connection, RemoteConnection.VideoProvider videoProvider)

Added in API level 23

Indicates that the VideoProvider associated with this RemoteConnection has changed.

Parameters
connection The RemoteConnection invoking this method.
videoProvider The new VideoProvider associated with this RemoteConnection.

public void onVideoStateChanged (RemoteConnection connection, int videoState)

Added in API level 23

Indicates that the video state of this RemoteConnection has changed. See getVideoState().

Parameters
connection The RemoteConnection invoking this method.
videoState The new video state of the RemoteConnection.

public void onVoipAudioChanged (RemoteConnection connection, boolean isVoip)

Added in API level 23

Indicates that the VOIP audio status of this RemoteConnection has changed. See isVoipAudioMode().

Parameters
connection The RemoteConnection invoking this method.
isVoip Whether the new audio state of the RemoteConnection is VOIP.