Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

(a)Smack New Method Suggestion.

$
0
0

Class MultiUserChat

public list<Packet> getPreviousMessages(int Amount){

list<Packet> messages = new List<Packet>();

//logic to obtain messages and add to list using int to get a specific amount of messages

return messages;

}

 

This would mainly be helpful to devs on android. When rotating the screen you lose the listview containing all previous messages. Leaving and rejoining the room will do this but you have to leave everytime the screen is rotated.

 

thoughts flow?


Viewing all articles
Browse latest Browse all 10742

Trending Articles