FileDocCategorySizeDatePackage
MessageListener.javaAPI DocAndroid 1.5 API1358Wed May 06 22:42:46 BST 2009com.android.im.engine

MessageListener

public interface MessageListener
Interface that allows for implementing classes to listen for new message. Listeners are registered with ChatSession objects.

Fields Summary
Constructors Summary
Methods Summary
public voidonIncomingMessage(ChatSession ses, Message msg)
Calls when a new message has arrived.

param
ses the ChatSession.
param
msg the incoming message.

public voidonSendMessageError(ChatSession ses, Message msg, ImErrorInfo error)
Calls when an error occurs to send a message.

param
ses the ChatSession.
param
msg the message which was sent.
param
error the error information.