diff options
author | Tyler Gunn <tgunn@google.com> | 2014-10-28 13:51:27 -0700 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2014-10-28 13:51:27 -0700 |
commit | 3bffcf78b5e4bd8b60543126fc0bdb09808f28f5 (patch) | |
tree | e81febe969c08503645c059bce1ddde9e2659764 /telecomm/java/android/telecom/Connection.java | |
parent | bd6f4a818ef36764eb69ef7308eb6a9bf3740138 (diff) | |
download | frameworks_base-3bffcf78b5e4bd8b60543126fc0bdb09808f28f5.zip frameworks_base-3bffcf78b5e4bd8b60543126fc0bdb09808f28f5.tar.gz frameworks_base-3bffcf78b5e4bd8b60543126fc0bdb09808f28f5.tar.bz2 |
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
Diffstat (limited to 'telecomm/java/android/telecom/Connection.java')
-rw-r--r-- | telecomm/java/android/telecom/Connection.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java index 2932721..9bdbba8 100644 --- a/telecomm/java/android/telecom/Connection.java +++ b/telecomm/java/android/telecom/Connection.java @@ -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); + } + } } |