Merge commit '7f61051' into merge2
This commit is contained in:
@@ -50,6 +50,7 @@ public abstract class Conference implements Conferenceable {
|
||||
Conference conference, int connectionCapabilities) {}
|
||||
public void onVideoStateChanged(Conference c, int videoState) { }
|
||||
public void onVideoProviderChanged(Conference c, Connection.VideoProvider videoProvider) {}
|
||||
public void onStatusHintsChanged(Conference conference, StatusHints statusHints) {}
|
||||
}
|
||||
|
||||
private final Set<Listener> mListeners = new CopyOnWriteArraySet<>();
|
||||
@@ -67,6 +68,7 @@ public abstract class Conference implements Conferenceable {
|
||||
private int mConnectionCapabilities;
|
||||
private String mDisconnectMessage;
|
||||
private long mConnectTimeMillis = CONNECT_TIME_NOT_SPECIFIED;
|
||||
private StatusHints mStatusHints;
|
||||
|
||||
private final Connection.Listener mConnectionDeathListener = new Connection.Listener() {
|
||||
@Override
|
||||
@@ -535,4 +537,23 @@ public abstract class Conference implements Conferenceable {
|
||||
getVideoProvider(),
|
||||
super.toString());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the label and icon status to display in the InCall UI.
|
||||
*
|
||||
* @param statusHints The status label and icon to set.
|
||||
*/
|
||||
public final void setStatusHints(StatusHints statusHints) {
|
||||
mStatusHints = statusHints;
|
||||
for (Listener l : mListeners) {
|
||||
l.onStatusHintsChanged(this, statusHints);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The status hints for this conference.
|
||||
*/
|
||||
public final StatusHints getStatusHints() {
|
||||
return mStatusHints;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user