Browse SDKs · Android
SDKsAndroidEnterprise

Delete group applications

Use deleteGroupRequests to delete specified group application records in a batch.

Copy

deleteGroupRequests() accepts DeleteGroupRequestsReq, which can contain multiple SimpleGroupRequests items to delete application records in a batch. Each item contains fromUserID, the applicant's user ID, and groupID, the ID of the group the user applied to join.

SimpleGroupRequests[] groupRequests = {
    new SimpleGroupRequests(firstApplicantUserID, firstGroupID),
    new SimpleGroupRequests(secondApplicantUserID, secondGroupID)
};
DeleteGroupRequestsReq request = new DeleteGroupRequestsReq(groupRequests);

OpenIMClient.getInstance().groupManager.deleteGroupRequests(new OnBase<String>() {
    @Override public void onSuccess(String data) { /* The request completed. */ }
    @Override public void onError(int code, String error) { /* code and error describe the failure. */ }
}, request);

Deleting an application record is not the same as rejecting an application. To reject an application, use refuseGroupApplication().