Browse SDKs · Android
SDKsAndroid

Get group information

Use getGroupsInfo to retrieve the latest profiles for specified groups.

Copy

The groupIDs parameter of getGroupsInfo() is the list of group IDs to query. The method returns a list of GroupInfo objects.

OpenIMClient.getInstance().groupManager.getGroupsInfo(new OnBase<List<GroupInfo>>() {
    @Override public void onSuccess(List<GroupInfo> groups) { /* groups contains the requested group profiles. */ }
    @Override public void onError(int code, String error) { /* code and error describe the failure. */ }
}, groupIDs);