Skip to main content

setGroupInfo

Feature Introduction

Note

Set group information, including group avatar, name, announcement, introduction, extended fields, etc.

Caution

Only administrators and group owners have permission to set.

Related Callback: onGroupInfoChanged

Function Prototype


- (void)setGroupInfo:(OIMGroupInfo *)groupInfo
onSuccess:(nullable OIMSuccessCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeMandatoryDescription
groupIDNSStringYesGroup ID
groupInfoOIMGroupInfoYesGroup Info

Return Value

Parameter NameParameter TypeDescription
onSuccessOIMSuccessCallbackSuccess
onFailureOIMFailureCallbackFailure

Code Example


OIMGroupInfo *param = [OIMGroupInfo new];
param.introduction = @"";

[OIMManager.manager setGroupInfo:param
onSuccess:^(NSString * _Nullable data) {
} onFailure:^(NSInteger code, NSString * _Nullable msg) {
}];