public class QBWebRTCSignaling
extends AbstractConnectionListener
Modifier and Type | Method and Description |
---|---|
void |
addMessageListener(QBVideoChatSignalingListener listener)
Adds a packet listener that will be notified of any new messages in the signaling.
|
void |
close()
Closes the QBWebRTCSignaling and removes all references to it from the
QBVideoChatWebRTCSignalingManager . |
boolean |
equals(java.lang.Object obj) |
java.util.Collection<QBVideoChatSignalingListener> |
getListeners()
Returns an unmodifiable collection of all of the listeners registered with this signaling.
|
int |
getParticipant()
Returns the id of the user the chat is with.
|
void |
removeMessageListener(QBVideoChatSignalingListener listener)
Removes a packet listener that will be notified of any new messages in the signaling.
|
void |
sendMessage(QBChatMessage message)
Sends a message to the other chat participant.
|
public int getParticipant()
public java.util.Collection<QBVideoChatSignalingListener> getListeners()
public void close()
QBVideoChatWebRTCSignalingManager
. The signaling will
be unusable when this method returns, so it's recommend to drop all references to the
instance right after calling close()
.public void addMessageListener(QBVideoChatSignalingListener listener)
listener
- a packet listener.public void removeMessageListener(QBVideoChatSignalingListener listener)
listener
- a packet listener.public boolean equals(java.lang.Object obj)
public void sendMessage(QBChatMessage message) throws SmackException.NotConnectedException
message
- the message to send.org.jivesoftware.smack.SmackException.NotConnectedException
- if an error occurs sending the message.SmackException.NotConnectedException