mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 10:37:59 +01:00
Merge pull request #309 from vanitasvitae/rosterListenerDoc
Add missing Roster documentation
This commit is contained in:
commit
af0fb7543c
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