public class RosterEventDispatcher extends Object
addListener(RosterEventListener) and removeListener(RosterEventListener)
to add or remove RosterEventListener.| Constructor and Description |
|---|
RosterEventDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addingContact(Roster roster,
RosterItem item,
boolean persistent)
Notifies listeners that a contact is about to be added to a roster.
|
static void |
addListener(RosterEventListener listener)
Registers a listener to receive events.
|
static void |
contactAdded(Roster roster,
RosterItem item)
Notifies the listeners that a contact has been added to a roster.
|
static void |
contactDeleted(Roster roster,
RosterItem item)
Notifies the listeners that a contact has been deleted from a roster.
|
static void |
contactUpdated(Roster roster,
RosterItem item)
Notifies the listeners that a contact has been updated.
|
static void |
removeListener(RosterEventListener listener)
Unregisters a listener to receive events.
|
static void |
rosterLoaded(Roster roster)
Notifies the listeners that a roster has just been loaded.
|
public static void addListener(RosterEventListener listener)
listener - the listener.public static void removeListener(RosterEventListener listener)
listener - the listener.public static void rosterLoaded(Roster roster)
roster - the loaded roster.public static boolean addingContact(Roster roster, RosterItem item, boolean persistent)
roster - the roster that was updated.item - the new roster item.persistent - true if the new contact is going to be saved to the database.public static void contactAdded(Roster roster, RosterItem item)
roster - the roster that was updated.item - the new roster item.public static void contactUpdated(Roster roster, RosterItem item)
roster - the roster that was updated.item - the updated roster item.public static void contactDeleted(Roster roster, RosterItem item)
roster - the roster that was updated.item - the roster item that was deleted.Copyright © 2003–2019 Ignite Realtime. All rights reserved.