/** * Ask the home server if the lazy loading of room members is supported. * * @param callback the callback, to be notified if the server actually support the lazy loading. True if supported */ public void canEnableLazyLoading(final ApiCallback<Boolean> callback) { // Check that the server support the lazy loading mLoginRestClient.getVersions(new SimpleApiCallback<Versions>(callback) { @Override public void onSuccess(Versions info) { // Check if we can enable lazyLoading callback.onSuccess(VersionsUtil.supportLazyLoadMembers(info)); } }); }