Browse SDKs · Android
SDKsAndroid

Get received group applications

Use getRecvGroupApplicationList to retrieve group applications that the current user can handle.

Copy

Pass GetGroupApplicationListAsRecipientReq to set pagination and filters. You can set offset, count, groupIDs, and handleResults.

GetGroupApplicationListAsRecipientReq request = new GetGroupApplicationListAsRecipientReq(0, 20);
OpenIMClient.getInstance().groupManager.getRecvGroupApplicationList(
    new OnBase<List<GroupApplicationInfo>>() {
        @Override public void onSuccess(List<GroupApplicationInfo> items) { /* items contains the current page. */ }
        @Override public void onError(int code, String error) { /* code and error describe the failure. */ }
    }, request);