setGroupReceiveMessageOpt
功能介绍
设置群组消息接收选项
参数详解
| 参数名称 | 参数类型 | 是否必填 | 描述 | 
|---|---|---|---|
| groupID | String | 是 | 需要设置的群组id | 
| opt | ReceiveMsgOptEnum | 是 | 群组消息接收选项属性 | 
返回值
V2TimCallback
{
    code : int
    desc : String
}
返回值详解
| 名称 | 数值类型 | 描述 | 
|---|---|---|
| code | int | 请求结果错误码 | 
| desc | String | 请求结果描述 | 
代码示例
    //设置群组消息接收选项
    // 设置在线和离线都不接收消息
    V2TimCallback setGroupReceiveMessageOptRes = await TencentImSDKPlugin
        .v2TIMManager
        .getMessageManager()
        .setGroupReceiveMessageOpt(
            groupID: "groupID", // 需要设置的群组id
            opt: ReceiveMsgOptEnum.V2TIM_NOT_RECEIVE_MESSAGE); // 用户消息接收选项属性
    if (setGroupReceiveMessageOptRes.code == 0) {
      //设置成功
    }