|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IChatManager
Chat manager access entry interface. The chat manager supports the sending and receiving of person-to-person messages for a given account.
Method Summary | |
---|---|
void |
addMessageListener(IIMMessageListener listener)
Add message listener. |
IChat |
createChat(ID targetUser,
IIMMessageListener messageListener)
Create chat instance for given target user. |
IChatMessageSender |
getChatMessageSender()
Get chat message sender. |
IHistoryManager |
getHistoryManager()
Get the history manager for this chat manager. |
IMessageSearchManager |
getMessageSearchManager()
Get the message search manager for this chat manager. |
ITypingMessageSender |
getTypingMessageSender()
Get typing message sender. |
void |
removeMessageListener(IIMMessageListener listener)
Remove message listener. |
Method Detail |
---|
void addMessageListener(IIMMessageListener listener)
listener
- the listener to add. Must not be null
.void removeMessageListener(IIMMessageListener listener)
listener
- the listener to remove. Must not be null
.IChatMessageSender getChatMessageSender()
null
will be returned.
null
, sending chat messages not supported by this
provider.ITypingMessageSender getTypingMessageSender()
null
will be returned.
null
, sending
typing messages not supported by this provider.IHistoryManager getHistoryManager()
null
.IMessageSearchManager getMessageSearchManager()
IMessageSearchManager
the message search manager instance. Will be
null
in case not available.IChat createChat(ID targetUser, IIMMessageListener messageListener) throws ECFException
targetUser
- the targetUser to create chat for. Must not be
null
. If the user container is
offline/disconnected. then an ECFException
will be
thrown. If this chat manager implementation does not support
creating such chats, then null
will be
returned.messageListener
- the message listener to listen for messages. Must not be
null
.
targetUser
. Will return
null
if the underlying implementation does not
support threads/specific chat instances.
ECFException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |