Communicating participant changes to conference controller.

- Add new ConferenceParticipant parcelable class which represents a
single participant contained in the conference event package.
- Adding callbacks/listeners to Connection to handle changes to
participant state.

Bug: 18057361
Change-Id: Iadfebe84959f30f8e835f282aa994c0b92768aa6
This commit is contained in:
Tyler Gunn
2014-10-28 13:51:27 -07:00
parent bd6f4a818e
commit 3bffcf78b5
4 changed files with 223 additions and 0 deletions

View File

@@ -82,6 +82,9 @@ public abstract class Connection {
public void onConferenceableConnectionsChanged(
Connection c, List<Connection> conferenceableConnections) {}
public void onConferenceChanged(Connection c, Conference conference) {}
/** @hide */
public void onConferenceParticipantChanged(Connection c, ConferenceParticipant participant)
{}
}
/** @hide */
@@ -1117,4 +1120,16 @@ public abstract class Connection {
}
mConferenceableConnections.clear();
}
/**
* Notifies listeners of a change to a conference participant.
*
* @param conferenceParticipant The participant.
* @hide
*/
protected final void updateConferenceParticipant(ConferenceParticipant conferenceParticipant) {
for (Listener l : mListeners) {
l.onConferenceParticipantChanged(this, conferenceParticipant);
}
}
}