跳到主要内容

joinGroup

功能介绍

说明

申请加入群组。

注意

函数原型


- (void)joinGroup:(NSString *)groupID
reqMsg:(NSString *)reqMsg
joinSource:(OIMJoinType)joinSource
onSuccess:(OIMSuccessCallback)onSuccess
onFailure:(OIMFailureCallback)onFailure;

输入参数

参数名称参数类型是否必填描述
groupIDNSString群ID
reqMsgNSSting请求信息
joinSourceOIMJoinType加入途径

返回结果

参数名称参数类型描述
onSuccessOIMSuccessCallback成功返回
onFailureOIMFailureCallback失败返回

代码示例


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