# RemoteConnection.Callback

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Callback

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/telecom/RemoteConnection.Callback "View this page in Java")  

```
abstract class Callback
```

|---|----------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                         ||
| ↳ | [android.telecom.RemoteConnection.Callback](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#) |

Callback base class for[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection).

## Summary

|                                                      Public constructors                                                      ||
|----------------------------------------------------------------------------------------------------------------------------|---|
| [Callback](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#Callback())`()` <br /> |

|                                                                                                                                                                                                                                                                                                                                                                                                     Public methods                                                                                                                                                                                                                                                                                                                                                                                                     ||
|----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onAddressChanged](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onAddressChanged(android.telecom.RemoteConnection,%20android.net.Uri,%20kotlin.Int))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `address:` `[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)!`, `presentation:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Indicates that the address (e.g., phone number) of this                                                                                                                                                            |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onCallerDisplayNameChanged](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onCallerDisplayNameChanged(android.telecom.RemoteConnection,%20kotlin.String,%20kotlin.Int))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `callerDisplayName:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `presentation:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Indicates that the caller display name of this`RemoteConnection`has changed.                                                                                                      |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onConferenceChanged](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onConferenceChanged(android.telecom.RemoteConnection,%20android.telecom.RemoteConference))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `conference:` `[RemoteConference](https://developer.android.com/reference/kotlin/android/telecom/RemoteConference)!`)` Indicates that the`RemoteConference`that this`RemoteConnection`is a part of has changed.                                                                                                                                                                                     |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onConferenceableConnectionsChanged](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onConferenceableConnectionsChanged(android.telecom.RemoteConnection,%20kotlin.collections.MutableList))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `conferenceableConnections:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!>!`)` Indicates that the`RemoteConnection`s with which this`RemoteConnection`may be asked to create a conference has changed. |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onConnectionCapabilitiesChanged](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onConnectionCapabilitiesChanged(android.telecom.RemoteConnection,%20kotlin.Int))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `connectionCapabilities:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Indicates that the call capabilities of this`RemoteConnection`have changed.                                                                                                                                                                                                              |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onConnectionEvent](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onConnectionEvent(android.telecom.RemoteConnection,%20kotlin.String,%20android.os.Bundle))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `event:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `extras:` `[Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html#)!`)` Handles a connection event propagated to this[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection).                                                       |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onConnectionPropertiesChanged](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onConnectionPropertiesChanged(android.telecom.RemoteConnection,%20kotlin.Int))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `connectionProperties:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Indicates that the call properties of this`RemoteConnection`have changed.                                                                                                                                                                                                                      |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onDestroyed](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onDestroyed(android.telecom.RemoteConnection))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`)` Indicates that this`RemoteConnection`has been destroyed.                                                                                                                                                                                                                                                                                                                                                                                               |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onDisconnected](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onDisconnected(android.telecom.RemoteConnection,%20android.telecom.DisconnectCause))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `disconnectCause:` `[DisconnectCause](https://developer.android.com/reference/kotlin/android/telecom/DisconnectCause)!`)` Invoked when this`RemoteConnection`is disconnected.                                                                                                                                                                                                                                  |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onExtrasChanged](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onExtrasChanged(android.telecom.RemoteConnection,%20android.os.Bundle))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `extras:` `[Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html#)?`)` Handles changes to the`RemoteConnection`extras.                                                                                                                                                                                                                                                                            |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onPostDialChar](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onPostDialChar(android.telecom.RemoteConnection,%20kotlin.Char))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `nextChar:` `[Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html)`)` Invoked when the post-dial sequence in the outgoing`Connection`has processed a character.                                                                                                                                                                                                                                             |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onPostDialWait](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onPostDialWait(android.telecom.RemoteConnection,%20kotlin.String))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `remainingPostDialSequence:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Invoked when the post-dial sequence in the outgoing`Connection`has reached a pause character.                                                                                                                                                                                                                 |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onRingbackRequested](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onRingbackRequested(android.telecom.RemoteConnection,%20kotlin.Boolean))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `ringback:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Invoked when this`RemoteConnection`is requesting ringback.                                                                                                                                                                                                                                                         |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onStateChanged](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onStateChanged(android.telecom.RemoteConnection,%20kotlin.Int))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `state:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Invoked when the state of this`RemoteConnection`has changed.                                                                                                                                                                                                                                                                                |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onStatusHintsChanged](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onStatusHintsChanged(android.telecom.RemoteConnection,%20android.telecom.StatusHints))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `statusHints:` `[StatusHints](https://developer.android.com/reference/kotlin/android/telecom/StatusHints)!`)` Indicates that the status hints of this`RemoteConnection`have changed.                                                                                                                                                                                                                   |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onVideoProviderChanged](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onVideoProviderChanged(android.telecom.RemoteConnection,%20android.telecom.RemoteConnection.VideoProvider))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `videoProvider:` `[RemoteConnection.VideoProvider](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.VideoProvider)!`)` Indicates that the`VideoProvider`associated with this`RemoteConnection`has changed.                                                                                                                                       |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onVideoStateChanged](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onVideoStateChanged(android.telecom.RemoteConnection,%20kotlin.Int))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `videoState:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Indicates that the video state of this`RemoteConnection`has changed.                                                                                                                                                                                                                                                         |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onVoipAudioChanged](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.Callback#onVoipAudioChanged(android.telecom.RemoteConnection,%20kotlin.Boolean))`(`connection:` `[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!`, `isVoip:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Indicates that the VOIP audio status of this`RemoteConnection`has changed.                                                                                                                                                                                                                                             |

## Public constructors

### Callback

```
Callback()
```

## Public methods

### onAddressChanged

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
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()](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection#getAddress())and[getAddressPresentation()](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection#getAddressPresentation()).

|                                                                                                                          Parameters                                                                                                                           ||
|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `connection`   | [RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method.                                                                                               |
| `address`      | [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)!:The new address of the`RemoteConnection`.                                                                                                                        |
| `presentation` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The presentation requirements for the address. See[TelecomManager](https://developer.android.com/reference/kotlin/android/telecom/TelecomManager)for valid values. |

### onCallerDisplayNameChanged

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

Indicates that the caller display name of this`RemoteConnection`has changed. See[getCallerDisplayName()](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection#getCallerDisplayName())and[getCallerDisplayNamePresentation()](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection#getCallerDisplayNamePresentation()).

|                                                                                                                            Parameters                                                                                                                             ||
|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `connection`        | [RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method.                                                                                              |
| `callerDisplayName` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:The new caller display name of the`RemoteConnection`.                                                                                                      |
| `presentation`      | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The presentation requirements for the handle. See[TelecomManager](https://developer.android.com/reference/kotlin/android/telecom/TelecomManager)for valid values. |

### onConferenceChanged

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun onConferenceChanged(
    connection: RemoteConnection!, 
    conference: RemoteConference!
): Unit
```

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

|                                                                                              Parameters                                                                                               ||
|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `connection` | [RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method.                                         |
| `conference` | [RemoteConference](https://developer.android.com/reference/kotlin/android/telecom/RemoteConference)!:The`RemoteConference`of which this`RemoteConnection`is a part, which may be`null`. |

### onConferenceableConnectionsChanged

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun onConferenceableConnectionsChanged(
    connection: RemoteConnection!, 
    conferenceableConnections: MutableList<RemoteConnection!>!
): Unit
```

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

|                                                                                                                                                                 Parameters                                                                                                                                                                 ||
|-----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `connection`                | [RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method.                                                                                                                                                               |
| `conferenceableConnections` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!\>!:The`RemoteConnection`s with which this`RemoteConnection`may be asked to create a conference. |

### onConnectionCapabilitiesChanged

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

Indicates that the call capabilities of this`RemoteConnection`have changed. See[getConnectionCapabilities()](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection#getConnectionCapabilities()).

|                                                                                Parameters                                                                                 ||
|--------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| `connection`             | [RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method. |
| `connectionCapabilities` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The new capabilities of the`RemoteConnection`.                       |

### onConnectionEvent

Added in[API level 25](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

Handles a connection event propagated to this[RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection).

Connection events originate from[Connection.sendConnectionEvent(String, Bundle)](https://developer.android.com/reference/kotlin/android/telecom/Connection#sendConnectionEvent(kotlin.String,%20android.os.Bundle)).

|                                                                          Parameters                                                                           ||
|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| `connection` | [RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method. |
| `event`      | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:The connection event.                                         |
| `extras`     | [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html#)!:Extras associated with the event.                             |

### onConnectionPropertiesChanged

Added in[API level 25](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

Indicates that the call properties of this`RemoteConnection`have changed. See[getConnectionProperties()](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection#getConnectionProperties()).

|                                                                               Parameters                                                                                ||
|------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| `connection`           | [RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method. |
| `connectionProperties` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The new properties of the`RemoteConnection`.                         |

### onDestroyed

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
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](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method. |

### onDisconnected

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

Invoked when this`RemoteConnection`is disconnected.

|                                                                                         Parameters                                                                                         ||
|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `connection`      | [RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method.                         |
| `disconnectCause` | [DisconnectCause](https://developer.android.com/reference/kotlin/android/telecom/DisconnectCause)!:The ({@see DisconnectCause}) associated with this failed connection. |

### onExtrasChanged

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

Handles changes to the`RemoteConnection`extras.

|                                                                                            Parameters                                                                                            ||
|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `connection` | [RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method.                                    |
| `extras`     | [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html#)?:The extras containing other information associated with the connection. This value may be`null`. |

### onPostDialChar

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
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](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method. |
| `nextChar`   | [Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html):The character being processed.                                     |

### onPostDialWait

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
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)](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection#postDialContinue(kotlin.Boolean))when the user makes the choice.

|                                                                                  Parameters                                                                                  ||
|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| `connection`                | [RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method. |
| `remainingPostDialSequence` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:The post-dial characters that remain to be sent.              |

### onRingbackRequested

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

Invoked when this`RemoteConnection`is requesting ringback. See[isRingbackRequested()](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection#isRingbackRequested()).

|                                                                          Parameters                                                                           ||
|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| `connection` | [RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method. |
| `ringback`   | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):Whether the`RemoteConnection`is requesting ringback.         |

### onStateChanged

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

Invoked when the state of this`RemoteConnection`has changed. See[getState()](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection#getState()).

|                                                                          Parameters                                                                           ||
|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| `connection` | [RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method. |
| `state`      | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The new state of the`RemoteConnection`.                              |

### onStatusHintsChanged

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

Indicates that the status hints of this`RemoteConnection`have changed. See[getStatusHints()](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection#getStatusHints())()}.

|                                                                           Parameters                                                                           ||
|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| `connection`  | [RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method. |
| `statusHints` | [StatusHints](https://developer.android.com/reference/kotlin/android/telecom/StatusHints)!:The new status hints of the`RemoteConnection`.       |

### onVideoProviderChanged

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun onVideoProviderChanged(
    connection: RemoteConnection!, 
    videoProvider: RemoteConnection.VideoProvider!
): Unit
```

Indicates that the`VideoProvider`associated with this`RemoteConnection`has changed.

|                                                                                                   Parameters                                                                                                    ||
|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `connection`    | [RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method.                                                |
| `videoProvider` | [RemoteConnection.VideoProvider](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection.VideoProvider)!:The new`VideoProvider`associated with this`RemoteConnection`. |

### onVideoStateChanged

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

Indicates that the video state of this`RemoteConnection`has changed. See[getVideoState()](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection#getVideoState()).

|                                                                          Parameters                                                                           ||
|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| `connection` | [RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method. |
| `videoState` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The new video state of the`RemoteConnection`.                        |

### onVoipAudioChanged

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun onVoipAudioChanged(
    connection: RemoteConnection!, 
    isVoip: Boolean
): Unit
```

Indicates that the VOIP audio status of this`RemoteConnection`has changed. See[isVoipAudioMode()](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection#isVoipAudioMode()).

|                                                                          Parameters                                                                           ||
|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| `connection` | [RemoteConnection](https://developer.android.com/reference/kotlin/android/telecom/RemoteConnection)!:The`RemoteConnection`invoking this method. |
| `isVoip`     | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):Whether the new audio state of the`RemoteConnection`is VOIP. |