Smack

org.jivesoftware.smack
Interface RosterListener


public interface RosterListener

A listener that is fired any time a roster is changed or the presence of a user in the roster is changed.

Author:
Matt Tucker
See Also:
Roster.addRosterListener(RosterListener)

Method Summary
 void entriesAdded(Collection addresses)
          Called when roster entries are added.
 void entriesDeleted(Collection addresses)
          Called when a roster entries are removed.
 void entriesUpdated(Collection addresses)
          Called when a roster entries are updated.
 void presenceChanged(String XMPPAddress)
          Called when the presence of a roster entry is changed.
 

Method Detail

entriesAdded

public void entriesAdded(Collection addresses)
Called when roster entries are added.

Parameters:
addresses - the XMPP addresses of the contacts that have been added to the roster.

entriesUpdated

public void entriesUpdated(Collection addresses)
Called when a roster entries are updated.

Parameters:
addresses - the XMPP addresses of the contacts whose entries have been updated.

entriesDeleted

public void entriesDeleted(Collection addresses)
Called when a roster entries are removed.

Parameters:
addresses - the XMPP addresses of the contacts that have been removed from the roster.

presenceChanged

public void presenceChanged(String XMPPAddress)
Called when the presence of a roster entry is changed.

Parameters:
XMPPAddress - the XMPP address of the user who's presence has changed, including the resource.

Smack

Copyright © 2003 Jive Software.