public interface RosterLoadedListenerRoster loaded listeners are invoked once the
Rosterwas successfully loaded.
A common approach is to call
onRosterLoaded(Roster), to initialize or update your UI components with the current roster state.
void onRosterLoaded(Roster roster)Called when the Roster was loaded successfully.
roster- the Roster that was loaded successfully.
void onRosterLoadingFailed(Exception exception)Called when roster loading has failed.
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
exception- the exception which caused the failure.