Browse SDKs · Android
Platform
SDKsAndroid

Get received group applications

Paginate group join requests received by the user as group owner or administrator using getRecvGroupApplicationList().

Copy

Paginate join requests that the authenticated user is authorized to review as a group owner or administrator. Configure the request object with paging offset and count, and optionally filter by target group IDs or review statuses.

Code example

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 of application records
        }

        @Override
        public void onError(int code, String error) {
            // Handle query failure
        }
    },
    request
);

Parameters

ParameterTypeRequiredDescription
baseOnBase<List<GroupApplicationInfo>>YesCallback delivering the asynchronous operation result.
requestGetGroupApplicationListAsRecipientReqYesPaging and filter configuration object holding offset and count, with optional groupIDs and handleResults filters.

Return value

The successful callback returns the current page as List<GroupApplicationInfo>. Core properties of each record include:

FieldDescription
groupIDTarget group ID of the join request.
userIDUser ID of the applicant.
nicknameDisplay nickname of the applicant.
faceURLAvatar URL of the applicant.
reqMsgApplication note or reason provided by the applicant.
handleResultApproval status: 0 for pending, 1 for approved, -1 for rejected.
reqTimeTimestamp (in milliseconds) when the application was submitted.

Deduplicate and update records in your local list using groupID:userID as the composite key. For review actions, see Accept a group application and Refuse a group application.