|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageListener
The 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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void messageReceived(ChatRoom room, org.jivesoftware.smack.packet.Message message)
ChatRoom
when it is receives a new message.
room
- the ChatRoom
the message was sent to.message
- the message received.ChatRoom
void messageSent(ChatRoom room, org.jivesoftware.smack.packet.Message message)
ChatRoom
when a new message has
been sent.
room
- the ChatRoom
that sent the message.message
- the message sent.ChatRoom
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |