public final class ChatMarkersManager
extends org.jivesoftware.smack.Manager
| Modifier and Type | Method and Description |
|---|---|
boolean |
addIncomingChatMarkerMessageListener(ChatMarkersListener listener)
Register a ChatMarkersListener.
|
static ChatMarkersManager |
getInstanceFor(org.jivesoftware.smack.XMPPConnection connection)
Get the singleton instance of ChatMarkersManager.
|
boolean |
isSupportedByServer()
Returns true if Chat Markers is supported by the server.
|
boolean |
removeIncomingChatMarkerMessageListener(ChatMarkersListener listener)
Unregister a ChatMarkersListener.
|
public static ChatMarkersManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection)
connection - the connection used to get the ChatMarkersManager instance.public boolean isSupportedByServer()
throws org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.XMPPException.XMPPErrorException,
org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotConnectedException - if the connection is not connected.org.jivesoftware.smack.XMPPException.XMPPErrorException - in case an error response was received.org.jivesoftware.smack.SmackException.NoResponseException - if no response was received.java.lang.InterruptedException - if the connection is interrupted.public boolean addIncomingChatMarkerMessageListener(ChatMarkersListener listener)
listener - ChatMarkersListenerpublic boolean removeIncomingChatMarkerMessageListener(ChatMarkersListener listener)
listener - ChatMarkersListener