Skip to main content

getGroupMemberOwnerAndAdmin

Feature Introduction

Note

Retrieve the group owner and administrators for the specified group.

Attention

(1) The caller must join this group to invoke this method.

Function Prototype


- (void)getGroupMemberOwnerAndAdmin:(NSString *)groupID
onSuccess:(nullable OIMGroupMembersInfoCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeMandatoryDescription
groupIDNSStringYesGroup ID

Return Results

Parameter NameParameter TypeDescription
onSuccessNSArray< OIMGroupMemberInfo *>Successful return
onFailureOIMFailureCallbackFailed return

Code Example


[OIMManager.manager getGroupMemberOwnerAndAdmin:@""
onSuccess:^(NSArray<OIMGroupMemberInfo *> * _Nullable groupMembersInfo) {
} onFailure:^(NSInteger code, NSString * _Nullable msg) {
}];