public interface RosterLoadedListener
Roster
was successfully loaded.
A common approach is to call
Roster.getEntriesAndAddListener(RosterListener, RosterEntries)
within
onRosterLoaded(Roster)
, to initialize or update your UI components with the current
roster state.
Modifier and Type | Method and Description |
---|---|
void |
onRosterLoaded(Roster roster)
Called when the Roster was loaded successfully.
|
void |
onRosterLoadingFailed(Exception exception)
Called when roster loading has failed.
|
void onRosterLoaded(Roster roster)
roster
- the Roster that was loaded successfully.void onRosterLoadingFailed(Exception exception)
Note that the reason for the failure could be as trivial as the connection being not
connected, in which case the exception will be a
SmackException.NotConnectedException
.
exception
- the exception which caused the failure.