Skip to main content

quitGroup

Description

info

Quit the group.

Note

(1) The group owner must transfer group ownership before they can quit the group.

Related Callbacks:
onJoinedGroupDeleted
onGroupMemberDeleted

Function Prototype


- (void)quitGroup:(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 quitGroup:@""
onSuccess:^(NSString * _Nullable data) {
} onFailure:^(NSInteger code, NSString * _Nullable msg) {
}];