SDKsAndroid
Update group profile
Use setGroupInfo to update a group name, avatar, introduction, and other profile fields.
Use setGroupInfo() to update a group profile. The request object contains the groupID and the fields being changed. Submit only the fields for the current update.
GroupInfo update = new GroupInfo();
update.setGroupID(groupID);
update.setGroupName("Mobile project team");
update.setIntroduction("Android and iOS collaboration group");
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. */ }
});Group announcements and extra data use the same API and are covered on their respective pages.
Was this page helpful?