Callback
abstract class Callback
| kotlin.Any | |
| ↳ | android.telecom.RemoteConnection.Callback |
Callback base class for RemoteConnection.
Summary
| Public constructors | |
|---|---|
Callback() |
|
| 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 |
| open Unit |
onConferenceChanged(connection: RemoteConnection!, conference: RemoteConference!)Indicates that the |
| open Unit |
onConferenceableConnectionsChanged(connection: RemoteConnection!, conferenceableConnections: MutableList<RemoteConnection!>!)Indicates that the |
| open Unit |
onConnectionCapabilitiesChanged(connection: RemoteConnection!, connectionCapabilities: Int)Indicates that the call capabilities of this |
| open Unit |
onConnectionEvent(connection: RemoteConnection!, event: String!, extras: Bundle!)Handles a connection event propagated to this |
| open Unit |
onConnectionPropertiesChanged(connection: RemoteConnection!, connectionProperties: Int)Indicates that the call properties of this |
| open Unit |
onDestroyed(connection: RemoteConnection!)Indicates that this |
| open Unit |
onDisconnected(connection: RemoteConnection!, disconnectCause: DisconnectCause!)Invoked when this |
| open Unit |
onExtrasChanged(connection: RemoteConnection!, extras: Bundle?)Handles changes to the |
| open Unit |
onPostDialChar(connection: RemoteConnection!, nextChar: Char)Invoked when the post-dial sequence in the outgoing |
| open Unit |
onPostDialWait(connection: RemoteConnection!, remainingPostDialSequence: String!)Invoked when the post-dial sequence in the outgoing |
| open Unit |
onRingbackRequested(connection: RemoteConnection!, ringback: Boolean)Invoked when this |
| open Unit |
onStateChanged(connection: RemoteConnection!, state: Int)Invoked when the state of this |
| open Unit |
onStatusHintsChanged(connection: RemoteConnection!, statusHints: StatusHints!)Indicates that the status hints of this |
| open Unit |
onVideoProviderChanged(connection: RemoteConnection!, videoProvider: RemoteConnection.VideoProvider!)Indicates that the |
| open Unit |
onVideoStateChanged(connection: RemoteConnection!, videoState: Int)Indicates that the video state of this |
| open Unit |
onVoipAudioChanged(connection: RemoteConnection!, isVoip: Boolean)Indicates that the VOIP audio status of this |
Public constructors
Callback
Callback()
Public methods
onAddressChanged
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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. |