mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-21 22:02:06 +01:00
Add missing Roster documentation
This commit is contained in:
parent
daab6039a1
commit
af88227919
1 changed files with 16 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue