Class ChatMarkersManager

java.lang.Object
org.jivesoftware.smack.Manager
org.jivesoftware.smackx.chat_markers.ChatMarkersManager

public final class ChatMarkersManager extends org.jivesoftware.smack.Manager
Chat Markers Manager class (XEP-0333).
See Also:
  • Method Details

    • getInstanceFor

      public static ChatMarkersManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection)
      Get the singleton instance of ChatMarkersManager.
      Parameters:
      connection - the connection used to get the ChatMarkersManager instance.
      Returns:
      the instance of ChatMarkersManager
    • isSupportedByServer

      @Deprecated public boolean isSupportedByServer() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Deprecated.
      This method serves no purpose, as servers do not announce this feature.
      Returns true if Chat Markers is supported by the server.
      Returns:
      true if Chat Markers is supported by the server.
      Throws:
      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.
      InterruptedException - if the connection is interrupted.
    • addIncomingChatMarkerMessageListener

      public boolean addIncomingChatMarkerMessageListener(ChatMarkersListener listener)
      Register a ChatMarkersListener. That listener will be informed about new incoming markable messages.
      Parameters:
      listener - ChatMarkersListener
      Returns:
      true, if the listener was not registered before
    • removeIncomingChatMarkerMessageListener

      public boolean removeIncomingChatMarkerMessageListener(ChatMarkersListener listener)
      Unregister a ChatMarkersListener.
      Parameters:
      listener - ChatMarkersListener
      Returns:
      true, if the listener was registered before