Browse SDKs · Android
Platform
SDKsAndroid

Get sent group applications

Paginate group join requests sent by the authenticated user using getSendGroupApplicationList().

Copy

Paginate outgoing group join applications submitted by the authenticated user. Configure the request object with paging offset and count to render request statuses (such as pending, approved, or rejected).

Code example

GetGroupApplicationListAsApplicantReq request = new GetGroupApplicationListAsApplicantReq(0, 20);

OpenIMClient.getInstance().groupManager.getSendGroupApplicationList(
    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.
requestGetGroupApplicationListAsApplicantReqYesPaging parameter object holding offset and count.

Return value

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

FieldDescription
groupIDTarget group ID of the join application.
groupNameName of the target group.
reqMsgNote or greeting submitted with the application.
handleResultApproval status: 0 for pending, 1 for approved, -1 for rejected.
handledMsgReview note or response returned by the group administrator.
reqTimeTimestamp (in milliseconds) when the application was sent.

Manage and display application statuses using groupID as the primary key. When an administrator approves the application, the client receives the onJoinedGroupAdded event on OnGroupListener to merge the group into the user's joined list. For complete listener registration details, see Group overview.