Methods Summary |
---|
void | addConnection(RemoteConnection connection){@hide}
if (!mChildConnections.contains(connection)) {
mChildConnections.add(connection);
connection.setConference(this);
for (Callback c : mCallbacks) {
c.onConnectionAdded(this, connection);
}
}
|
public void | disconnect()
try {
mConnectionService.disconnect(mId);
} catch (RemoteException e) {
}
|
public final int | getCallCapabilities()
return getConnectionCapabilities();
|
public java.util.List | getConferenceableConnections()
return mUnmodifiableConferenceableConnections;
|
public final int | getConnectionCapabilities()
return mConnectionCapabilities;
|
public final java.util.List | getConnections()
return mUnmodifiableChildConnections;
|
public DisconnectCause | getDisconnectCause()
return mDisconnectCause;
|
java.lang.String | getId(){@hide}
return mId;
|
public final int | getState()
return mState;
|
public void | hold()
try {
mConnectionService.hold(mId);
} catch (RemoteException e) {
}
|
public void | merge()
try {
mConnectionService.mergeConference(mId);
} catch (RemoteException e) {
}
|
public void | playDtmfTone(char digit)
try {
mConnectionService.playDtmfTone(mId, digit);
} catch (RemoteException e) {
}
|
public final void | registerCallback(android.telecom.RemoteConference$Callback callback)
mCallbacks.add(callback);
|
void | removeConnection(RemoteConnection connection){@hide}
if (mChildConnections.contains(connection)) {
mChildConnections.remove(connection);
connection.setConference(null);
for (Callback c : mCallbacks) {
c.onConnectionRemoved(this, connection);
}
}
|
public void | separate(RemoteConnection connection)
if (mChildConnections.contains(connection)) {
try {
mConnectionService.splitFromConference(connection.getId());
} catch (RemoteException e) {
}
}
|
public void | setAudioState(AudioState state)
try {
mConnectionService.onAudioStateChanged(mId, state);
} catch (RemoteException e) {
}
|
void | setConferenceableConnections(java.util.List conferenceableConnections)
mConferenceableConnections.clear();
mConferenceableConnections.addAll(conferenceableConnections);
for (Callback c : mCallbacks) {
c.onConferenceableConnectionsChanged(this, mUnmodifiableConferenceableConnections);
}
|
void | setConnectionCapabilities(int connectionCapabilities){@hide}
if (mConnectionCapabilities != connectionCapabilities) {
mConnectionCapabilities = connectionCapabilities;
for (Callback c : mCallbacks) {
c.onConnectionCapabilitiesChanged(this, mConnectionCapabilities);
}
}
|
void | setDestroyed(){@hide}
for (RemoteConnection connection : mChildConnections) {
connection.setConference(null);
}
for (Callback c : mCallbacks) {
c.onDestroyed(this);
}
|
void | setDisconnected(DisconnectCause disconnectCause){@hide}
if (mState != Connection.STATE_DISCONNECTED) {
mDisconnectCause = disconnectCause;
setState(Connection.STATE_DISCONNECTED);
for (Callback c : mCallbacks) {
c.onDisconnected(this, disconnectCause);
}
}
|
void | setState(int newState){@hide}
if (newState != Connection.STATE_ACTIVE &&
newState != Connection.STATE_HOLDING &&
newState != Connection.STATE_DISCONNECTED) {
Log.w(this, "Unsupported state transition for Conference call.",
Connection.stateToString(newState));
return;
}
if (mState != newState) {
int oldState = mState;
mState = newState;
for (Callback c : mCallbacks) {
c.onStateChanged(this, oldState, newState);
}
}
|
public void | stopDtmfTone()
try {
mConnectionService.stopDtmfTone(mId);
} catch (RemoteException e) {
}
|
public void | swap()
try {
mConnectionService.swapConference(mId);
} catch (RemoteException e) {
}
|
public void | unhold()
try {
mConnectionService.unhold(mId);
} catch (RemoteException e) {
}
|
public final void | unregisterCallback(android.telecom.RemoteConference$Callback callback)
mCallbacks.remove(callback);
|