initGroupAttributes method

Future<V2TimCallback> initGroupAttributes({
  1. required String groupID,
  2. required Map<String, String> attributes,
})

初始化群属性,会清空原有的群属性列表

注意

attributes 的使用限制如下:

1、目前只支持 AVChatRoom
2、key 最多支持16个,长度限制为32字节
3、value 长度限制为4k
4、总的 attributes(包括 key 和 value)限制为16k
5、initGroupAttributes、setGroupAttributes、deleteGroupAttributes 接口合并计算, SDK 限制为5秒10次,超过后回调8511错误码;后台限制1秒5次,超过后返回10049错误码
6、getGroupAttributes 接口 SDK 限制5秒20次

Implementation

Future<V2TimCallback> initGroupAttributes({
  required String groupID,
  required Map<String, String> attributes,
}) async {
  throw UnimplementedError(" initGroupAttributeshas not been implemented");
}