com.beem.project.beem.service
Class BeemChatManager
java.lang.Object
android.os.Binder
com.beem.project.beem.service.aidl.IChatManager.Stub
com.beem.project.beem.service.BeemChatManager
- All Implemented Interfaces:
- IBinder, IInterface, IChatManager
public class BeemChatManager
- extends IChatManager.Stub
An adapter for smack's ChatManager. This class provides functionnality to handle chats.
| Methods inherited from class android.os.Binder |
attachInterface, clearCallingIdentity, dump, dump, finalize, flushPendingCommands, getCallingPid, getCallingUid, getInterfaceDescriptor, isBinderAlive, joinThreadPool, linkToDeath, pingBinder, queryLocalInterface, restoreCallingIdentity, transact, unlinkToDeath |
BeemChatManager
public BeemChatManager(ChatManager chatManager,
BeemService service,
Roster roster)
- Constructor.
- Parameters:
chatManager - the smack ChatManager to adaptservice - the service which runs the chat managerroster - roster used to get presences changes
addChatCreationListener
public void addChatCreationListener(IChatManagerListener listener)
throws RemoteException
- Description copied from interface:
IChatManager
- Register a callback to call when a new chat session is created.
- Parameters:
listener - the callback to add
- Throws:
RemoteException
createChat
public IChat createChat(Contact contact,
IMessageListener listener)
- Create a chat session.
- Parameters:
contact - the contact you want to chat withlistener - listener to use for chat events on this chat session
- Returns:
- the chat session
createChat
public IChat createChat(String jid,
IMessageListener listener)
- Create a chat session.
- Parameters:
jid - the jid of the contact you want to chat withlistener - listener to use for chat events on this chat session
- Returns:
- the chat session
destroyChat
public void destroyChat(IChat chat)
throws RemoteException
- Destroy a chat session with a contact.
- Parameters:
chat - the chat session
- Throws:
RemoteException
deleteChatNotification
public void deleteChatNotification(IChat chat)
-
- Parameters:
chat - the chat.
getChat
public ChatAdapter getChat(Contact contact)
- Description copied from interface:
IChatManager
- Get an existing Chat session with a contact.
- Returns:
- null if the chat session does not exist.
getOpenedChatList
public List<Contact> getOpenedChatList()
throws RemoteException
- This methods permits to retrieve the list of contacts who have an opened chat session with us.
- Returns:
- An List containing Contact instances.
- Throws:
RemoteException - If a Binder remote-invocation error occurred.
removeChatCreationListener
public void removeChatCreationListener(IChatManagerListener listener)
throws RemoteException
- Remove a callback for the creation of new chat session.
- Parameters:
listener - the callback to remove.
- Throws:
RemoteException
Copyright © 2009 Beem-project.com. All Rights Reserved.