public final class ChatManager
extends org.jivesoftware.smack.Manager
This manager and the according Chat
API implement "Resource Locking" (XEP-0296). Support for Carbon Copies
(XEP-0280) will be added once the XEP has progressed from experimental.
Modifier and Type | Method and Description |
---|---|
boolean |
addListener(IncomingChatMessageListener listener) |
boolean |
addListener(OutgoingChatMessageListener listener) |
Chat |
chatWith(org.jxmpp.jid.EntityBareJid jid)
Start a new or retrieve the existing chat with
jid . |
static ChatManager |
getInstanceFor(org.jivesoftware.smack.XMPPConnection connection) |
boolean |
removeListener(IncomingChatMessageListener listener) |
boolean |
removeOutoingLIstener(OutgoingChatMessageListener listener) |
void |
setXhmtlImEnabled(boolean xhtmlIm)
Also notify about messages containing XHTML-IM.
|
public static ChatManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection)
public boolean addListener(IncomingChatMessageListener listener)
public boolean removeListener(IncomingChatMessageListener listener)
public boolean addListener(OutgoingChatMessageListener listener)
public boolean removeOutoingLIstener(OutgoingChatMessageListener listener)
public Chat chatWith(org.jxmpp.jid.EntityBareJid jid)
jid
.jid
- the XMPP address of the other entity to chat with.public void setXhmtlImEnabled(boolean xhtmlIm)
xhtmlIm
-