Added in API level 23

Callback


abstract class Callback
kotlin.Any
   ↳ android.telecom.RemoteConnection.Callback

Callback base class for RemoteConnection.

Summary

Public constructors

Public methods
open Unit
onAddressChanged(connection: RemoteConnection!, address: Uri!, presentation: Int)

Indicates that the address (e.g., phone number) of this

open Unit
onCallerDisplayNameChanged(connection: RemoteConnection!, callerDisplayName: String!, presentation: Int)

Indicates that the caller display name of this RemoteConnection has changed.

open Unit

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

open Unit

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

open Unit
onConnectionCapabilitiesChanged(connection: RemoteConnection!, connectionCapabilities: Int)

Indicates that the call capabilities of this RemoteConnection have changed.

open Unit
onConnectionEvent(connection: RemoteConnection!, event: String!, extras: Bundle!)

Handles a connection event propagated to this RemoteConnection.

open Unit
onConnectionPropertiesChanged(connection: RemoteConnection!, connectionProperties: Int)

Indicates that the call properties of this RemoteConnection have changed.

open Unit

Indicates that this RemoteConnection has been destroyed.

open Unit
onDisconnected(connection: RemoteConnection!, disconnectCause: DisconnectCause!)

Invoked when this RemoteConnection is disconnected.

open Unit
onExtrasChanged(connection: RemoteConnection!, extras: Bundle?)

Handles changes to the RemoteConnection extras.

open Unit
onPostDialChar(connection: RemoteConnection!, nextChar: Char)

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

open Unit
onPostDialWait(connection: RemoteConnection!, remainingPostDialSequence: String!)

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

open Unit
onRingbackRequested(connection: RemoteConnection!, ringback: Boolean)

Invoked when this RemoteConnection is requesting ringback.

open Unit
onStateChanged(connection: RemoteConnection!, state: Int)

Invoked when the state of this RemoteConnection has changed.

open Unit
onStatusHintsChanged(connection: RemoteConnection!, statusHints: StatusHints!)

Indicates that the status hints of this RemoteConnection have changed.

open Unit

Indicates that the VideoProvider associated with this RemoteConnection has changed.

open Unit
onVideoStateChanged(connection: RemoteConnection!, videoState: Int)

Indicates that the video state of this RemoteConnection has changed.

open Unit

Indicates that the VOIP audio status of this RemoteConnection has changed.

Public constructors

Callback

Callback()

Public methods

onAddressChanged

Added in API level 23
open fun onAddressChanged(
    connection: RemoteConnection!,
    address: Uri!,
    presentation: Int
): Unit

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

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

onCallerDisplayNameChanged

Added in API level 23
open fun onCallerDisplayNameChanged(
    connection: RemoteConnection!,
    callerDisplayName: String!,
    presentation: Int
): Unit

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

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

onConferenceChanged

Added in API level 23
open fun onConferenceChanged(
    connection: RemoteConnection!,
    conference: RemoteConference!
): Unit

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

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

onConferenceableConnectionsChanged

Added in API level 23
open fun onConferenceableConnectionsChanged(
    connection: RemoteConnection!,
    conferenceableConnections: MutableList<RemoteConnection!>!
): Unit

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

Parameters
connection RemoteConnection!: The RemoteConnection invoking this method.
conferenceableConnections MutableList<RemoteConnection!>!: The RemoteConnections with which this RemoteConnection may be asked to create a conference.

onConnectionCapabilitiesChanged

Added in API level 23
open fun onConnectionCapabilitiesChanged(
    connection: RemoteConnection!,
    connectionCapabilities: Int
): Unit

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

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

onConnectionEvent

Added in API level 25
open fun onConnectionEvent(
    connection: RemoteConnection!,
    event: String!,
    extras: Bundle!
): Unit

Handles a connection event propagated to this RemoteConnection.

Connection events originate from Connection.sendConnectionEvent(String, Bundle).

Parameters
connection RemoteConnection!: The RemoteConnection invoking this method.
event String!: The connection event.
extras Bundle!: Extras associated with the event.

onConnectionPropertiesChanged

Added in API level 25
open fun onConnectionPropertiesChanged(
    connection: RemoteConnection!,
    connectionProperties: Int
): Unit

Indicates that the call properties of this RemoteConnection have changed. See getConnectionProperties().

Parameters
connection RemoteConnection!: The RemoteConnection invoking this method.
connectionProperties Int: The new properties of the RemoteConnection.

onDestroyed

Added in API level 23
open fun onDestroyed(connection: RemoteConnection!): Unit

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 RemoteConnection!: The RemoteConnection invoking this method.

onDisconnected

Added in API level 23
open fun onDisconnected(
    connection: RemoteConnection!,
    disconnectCause: DisconnectCause!
): Unit

Invoked when this RemoteConnection is disconnected.

Parameters
connection RemoteConnection!: The RemoteConnection invoking this method.
disconnectCause DisconnectCause!: The ({@see DisconnectCause}) associated with this failed connection.

onExtrasChanged

Added in API level 23
open fun onExtrasChanged(
    connection: RemoteConnection!,
    extras: Bundle?
): Unit

Handles changes to the RemoteConnection extras.

Parameters
connection RemoteConnection!: The RemoteConnection invoking this method.
extras Bundle?: The extras containing other information associated with the connection. This value may be null.

onPostDialChar

Added in API level 23
open fun onPostDialChar(
    connection: RemoteConnection!,
    nextChar: Char
): Unit

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

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

onPostDialWait

Added in API level 23
open fun onPostDialWait(
    connection: RemoteConnection!,
    remainingPostDialSequence: String!
): Unit

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 RemoteConnection.postDialContinue(boolean) when the user makes the choice.

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

onRingbackRequested

Added in API level 23
open fun onRingbackRequested(
    connection: RemoteConnection!,
    ringback: Boolean
): Unit

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

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

onStateChanged

Added in API level 23
open fun onStateChanged(
    connection: RemoteConnection!,
    state: Int
): Unit

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

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

onStatusHintsChanged

Added in API level 23
open fun onStatusHintsChanged(
    connection: RemoteConnection!,
    statusHints: StatusHints!
): Unit

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

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

onVideoProviderChanged

Added in API level 23
open fun onVideoProviderChanged(
    connection: RemoteConnection!,
    videoProvider: RemoteConnection.VideoProvider!
): Unit

Indicates that the VideoProvider associated with this RemoteConnection has changed.

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

onVideoStateChanged

Added in API level 23
open fun onVideoStateChanged(
    connection: RemoteConnection!,
    videoState: Int
): Unit

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

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

onVoipAudioChanged

Added in API level 23
open fun onVoipAudioChanged(
    connection: RemoteConnection!,
    isVoip: Boolean
): Unit

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

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