1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-24 23:32:05 +01:00

Add missing Roster documentation

This commit is contained in:
Paul Schaub 2019-04-06 02:36:32 +02:00
parent daab6039a1
commit af88227919
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -560,7 +560,8 @@ public final class Roster extends Manager {
}
/**
* Add a roster loaded listener.
* Add a roster loaded listener. Roster loaded listeners are invoked once the {@link Roster}
* was successfully loaded.
*
* @param rosterLoadedListener the listener to add.
* @return true if the listener was not already added.
@ -587,6 +588,20 @@ public final class Roster extends Manager {
}
}
/**
* Add a {@link PresenceEventListener}. Such a listener will be fired whenever certain
* presence events happen.<p>
* Among those events are:
* <ul>
* <li> 'available' presence received
* <li> 'unavailable' presence received
* <li> 'error' presence received
* <li> 'subscribed' presence received
* <li> 'unsubscribed' presence received
* </ul>
* @param presenceEventListener listener to add.
* @return true if the listener was not already added.
*/
public boolean addPresenceEventListener(PresenceEventListener presenceEventListener) {
return presenceEventListeners.add(presenceEventListener);
}