public interface MessageListener
MessageListener
interface is one of the interfaces extension
writers use to add functionality to Spark.
In general, you implement this interface in order to listen
for incoming or outgoing messages to particular ChatRooms and to be notified
about the message itself.Modifier and Type | Method and Description |
---|---|
void |
messageReceived(ChatRoom room,
org.jivesoftware.smack.packet.Message message)
Invoked by the
ChatRoom when it is receives a new message. |
void |
messageSent(ChatRoom room,
org.jivesoftware.smack.packet.Message message)
Invoked by the
ChatRoom when a new message has
been sent. |