Skip to main content

dismissGroup

Description

info

Dismiss the group, only the group owner can call.

Note

The group status field will be set to dismissed in the backend. When group members pull the joined groups, this group will no longer be returned.

Related Callbacks:
onGroupDismissed

Function Prototype


- (void)dismissGroup:(NSString *)groupID
onSuccess:(nullable OIMSuccessCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeRequiredDescription
groupIDNSStringYesGroup ID

Return Result

Parameter NameParameter TypeDescription
onSuccessOIMSuccessCallbackSuccess
onFailureOIMFailureCallbackFailure

Code Example


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