Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Nested Classes](https://developer.android.com/reference/android/telecom/RemoteConference#nestedclasses) \| [Methods](https://developer.android.com/reference/android/telecom/RemoteConference#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/telecom/RemoteConference#inhmethods)

# RemoteConference

*** ** * ** ***

` public final class RemoteConference `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.telecom.RemoteConference |

<br />

*** ** * ** ***

A conference provided to a `https://developer.android.com/reference/android/telecom/ConnectionService` by another `ConnectionService` through `https://developer.android.com/reference/android/telecom/ConnectionService#conferenceRemoteConnections(android.telecom.RemoteConnection,%20android.telecom.RemoteConnection)`. Once created, a `RemoteConference` can be used to control the conference call or monitor changes through `https://developer.android.com/reference/android/telecom/RemoteConnection.Callback`.
**See also:**

- `https://developer.android.com/reference/android/telecom/ConnectionService#onRemoteConferenceAdded(android.telecom.RemoteConference)`

## Summary

| ### Nested classes ||
|---|---|
| ` class` | `https://developer.android.com/reference/android/telecom/RemoteConference.Callback` Callback base class for `https://developer.android.com/reference/android/telecom/RemoteConference`. |

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/android/telecom/RemoteConference#disconnect()() ` Disconnects the conference call as well as the child `https://developer.android.com/reference/android/telecom/RemoteConnection`s. |
| ` https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/telecom/RemoteConnection>` | ` https://developer.android.com/reference/android/telecom/RemoteConference#getConferenceableConnections()() ` Returns a list of independent connections that can me merged with this conference. |
| ` int` | ` https://developer.android.com/reference/android/telecom/RemoteConference#getConnectionCapabilities()() ` Returns the capabilities of the conference. |
| ` int` | ` https://developer.android.com/reference/android/telecom/RemoteConference#getConnectionProperties()() ` Returns the properties of the conference. |
| ` https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/telecom/RemoteConnection>` | ` https://developer.android.com/reference/android/telecom/RemoteConference#getConnections()() ` Returns the list of `https://developer.android.com/reference/android/telecom/RemoteConnection`s contained in this conference. |
| ` https://developer.android.com/reference/android/telecom/DisconnectCause` | ` https://developer.android.com/reference/android/telecom/RemoteConference#getDisconnectCause()() ` Returns the `https://developer.android.com/reference/android/telecom/DisconnectCause` for the conference if it is in the state `https://developer.android.com/reference/android/telecom/Connection#STATE_DISCONNECTED`. |
| ` https://developer.android.com/reference/android/os/Bundle` | ` https://developer.android.com/reference/android/telecom/RemoteConference#getExtras()() ` Obtain the extras associated with this `RemoteConnection`. |
| ` int` | ` https://developer.android.com/reference/android/telecom/RemoteConference#getState()() ` Gets the state of the conference call. |
| ` void` | ` https://developer.android.com/reference/android/telecom/RemoteConference#hold()() ` Puts the conference on hold. |
| ` void` | ` https://developer.android.com/reference/android/telecom/RemoteConference#merge()() ` Merges all `https://developer.android.com/reference/android/telecom/RemoteConnection`s of this conference into a single call. |
| ` void` | ` https://developer.android.com/reference/android/telecom/RemoteConference#playDtmfTone(char)(char digit) ` Requests that the conference start playing the specified DTMF tone. |
| ` void` | ` https://developer.android.com/reference/android/telecom/RemoteConference#registerCallback(android.telecom.RemoteConference.Callback,%20android.os.Handler)(https://developer.android.com/reference/android/telecom/RemoteConference.Callback callback, https://developer.android.com/reference/android/os/Handler handler) ` Registers a callback through which to receive state updates for this conference. |
| ` void` | ` https://developer.android.com/reference/android/telecom/RemoteConference#registerCallback(android.telecom.RemoteConference.Callback)(https://developer.android.com/reference/android/telecom/RemoteConference.Callback callback) ` Register a callback through which to receive state updates for this conference. |
| ` void` | ` https://developer.android.com/reference/android/telecom/RemoteConference#separate(android.telecom.RemoteConnection)(https://developer.android.com/reference/android/telecom/RemoteConnection connection) ` Removes the specified `https://developer.android.com/reference/android/telecom/RemoteConnection` from the conference. |
| ` void` | ` https://developer.android.com/reference/android/telecom/RemoteConference#setCallAudioState(android.telecom.CallAudioState)(https://developer.android.com/reference/android/telecom/CallAudioState state) ` Request to change the conference's audio routing to the specified state. |
| ` void` | ` https://developer.android.com/reference/android/telecom/RemoteConference#stopDtmfTone()() ` Stops the most recent request to play a DTMF tone. |
| ` void` | ` https://developer.android.com/reference/android/telecom/RemoteConference#swap()() ` Swaps the active audio stream between the conference's child `https://developer.android.com/reference/android/telecom/RemoteConnection`s. |
| ` void` | ` https://developer.android.com/reference/android/telecom/RemoteConference#unhold()() ` Unholds the conference call. |
| ` void` | ` https://developer.android.com/reference/android/telecom/RemoteConference#unregisterCallback(android.telecom.RemoteConference.Callback)(https://developer.android.com/reference/android/telecom/RemoteConference.Callback callback) ` Unregisters a previously registered callback. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Public methods

### disconnect

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

```
public void disconnect ()
```

Disconnects the conference call as well as the child `https://developer.android.com/reference/android/telecom/RemoteConnection`s.

<br />

### getConferenceableConnections

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

```
public List<RemoteConnection> getConferenceableConnections ()
```

Returns a list of independent connections that can me merged with this conference.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/telecom/RemoteConnection>` | A list of conferenceable connections. <br /> |

### getConnectionCapabilities

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

```
public int getConnectionCapabilities ()
```

Returns the capabilities of the conference. See `CAPABILITY_*` constants in class `https://developer.android.com/reference/android/telecom/Connection` for valid values.

<br />

| Returns ||
|---|---|
| `int` | A bitmask of the capabilities of the conference call. <br /> |

### getConnectionProperties

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

```
public int getConnectionProperties ()
```

Returns the properties of the conference. See `PROPERTY_*` constants in class `https://developer.android.com/reference/android/telecom/Connection` for valid values.

<br />

| Returns ||
|---|---|
| `int` | A bitmask of the properties of the conference call. <br /> |

### getConnections

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

```
public List<RemoteConnection> getConnections ()
```

Returns the list of `https://developer.android.com/reference/android/telecom/RemoteConnection`s contained in this conference.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/telecom/RemoteConnection>` | A list of child connections. <br /> |

### getDisconnectCause

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

```
public DisconnectCause getDisconnectCause ()
```

Returns the `https://developer.android.com/reference/android/telecom/DisconnectCause` for the conference if it is in the state `https://developer.android.com/reference/android/telecom/Connection#STATE_DISCONNECTED`. If the conference is not disconnected, this will return null.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/telecom/DisconnectCause` | The disconnect cause. <br /> |

### getExtras

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

```
public Bundle getExtras ()
```

Obtain the extras associated with this `RemoteConnection`.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/os/Bundle` | The extras for this connection. <br /> |

### getState

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

```
public int getState ()
```

Gets the state of the conference call. See `https://developer.android.com/reference/android/telecom/Connection` for valid values.

<br />

| Returns ||
|---|---|
| `int` | A constant representing the state the conference call is currently in. <br /> |

### hold

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

```
public void hold ()
```

Puts the conference on hold.

<br />

### merge

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

```
public void merge ()
```

Merges all `https://developer.android.com/reference/android/telecom/RemoteConnection`s of this conference into a single call. This should be invoked only if the conference contains the capability `https://developer.android.com/reference/android/telecom/Connection#CAPABILITY_MERGE_CONFERENCE`, otherwise it is a no-op. The presence of said capability indicates that the connections of this conference, despite being part of the same conference object, are yet to have their audio streams merged; this is a common pattern for CDMA conference calls, but the capability is not used for GSM and SIP conference calls. Invoking this method will cause the unmerged child connections to merge their audio streams.

<br />

### playDtmfTone

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

```
public void playDtmfTone (char digit)
```

Requests that the conference start playing the specified DTMF tone.

<br />

| Parameters ||
|---|---|
| `digit` | `char`: The digit for which to play a DTMF tone. <br /> |

### registerCallback

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

```
public void registerCallback (RemoteConference.Callback callback, 
                Handler handler)
```

Registers a callback through which to receive state updates for this conference. Callbacks will be notified using the specified handler, if provided.

<br />

| Parameters ||
|---|---|
| `callback` | `RemoteConference.Callback`: The callback to notify of state changes. <br /> |
| `handler` | `Handler`: The handler on which to execute the callbacks. <br /> |

### registerCallback

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

```
public void registerCallback (RemoteConference.Callback callback)
```

Register a callback through which to receive state updates for this conference.

<br />

| Parameters ||
|---|---|
| `callback` | `RemoteConference.Callback`: The callback to notify of state changes. <br /> |

### separate

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

```
public void separate (RemoteConnection connection)
```

Removes the specified `https://developer.android.com/reference/android/telecom/RemoteConnection` from the conference. This causes the `https://developer.android.com/reference/android/telecom/RemoteConnection` to become a standalone connection. This is a no-op if the `https://developer.android.com/reference/android/telecom/RemoteConnection` does not belong to this conference.

<br />

| Parameters ||
|---|---|
| `connection` | `RemoteConnection`: The remote-connection to remove. <br /> |

### setCallAudioState

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

```
public void setCallAudioState (CallAudioState state)
```

Request to change the conference's audio routing to the specified state. The specified state can include audio routing (Bluetooth, Speaker, etc) and muting state.

<br />

| Parameters ||
|---|---|
| `state` | `CallAudioState` <br /> |

### stopDtmfTone

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

```
public void stopDtmfTone ()
```

Stops the most recent request to play a DTMF tone.

<br />

**See also:**

- `https://developer.android.com/reference/android/telecom/RemoteConference#playDtmfTone(char)`

### swap

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

```
public void swap ()
```

Swaps the active audio stream between the conference's child `https://developer.android.com/reference/android/telecom/RemoteConnection`s. This should be invoked only if the conference contains the capability `https://developer.android.com/reference/android/telecom/Connection#CAPABILITY_SWAP_CONFERENCE`, otherwise it is a no-op. This is only used by `https://developer.android.com/reference/android/telecom/ConnectionService`s that create conferences for connections that do not yet have their audio streams merged; this is a common pattern for CDMA conference calls, but the capability is not used for GSM and SIP conference calls. Invoking this method will change the active audio stream to a different child connection.

<br />

### unhold

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

```
public void unhold ()
```

Unholds the conference call.

<br />

### unregisterCallback

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

```
public void unregisterCallback (RemoteConference.Callback callback)
```

Unregisters a previously registered callback.

<br />

| Parameters ||
|---|---|
| `callback` | `RemoteConference.Callback`: The callback to unregister. <br /> |

**See also:**

- `https://developer.android.com/reference/android/telecom/RemoteConference#registerCallback(android.telecom.RemoteConference.Callback)`