SDKsAndroid
Set group join verification
Configure verification rules for group applications and invitations through GroupInfo.needVerification.
Set the verification mode in GroupInfo.needVerification, then call setGroupInfo(). Use one of the GroupVerification constants: APPLY_NEED_VERIFICATION_INVITE_DIRECTLY, ALL_NEED_VERIFICATION, or DIRECTLY.
GroupInfo update = new GroupInfo();
update.setGroupID(groupID);
update.setNeedVerification(GroupVerification.ALL_NEED_VERIFICATION);
OpenIMClient.getInstance().groupManager.setGroupInfo(update, 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. */ }
});This setting applies to subsequent join requests. It does not accept or reject existing applications.
A successful callback means that the setting request completed; it does not mean that every client has updated its UI. onGroupInfoChanged provides the updated GroupInfo. Merge the verification setting by groupID. See Group overview for the complete listener setup.
Was this page helpful?